All Downloads are FREE. Search and download functionalities are using the official Maven repository.

freeseawind.lf.geom.LuckProperty Maven / Gradle / Ivy

The newest version!
package freeseawind.lf.geom;

/**
 *
 * @author freeseawind@github
 * @version 1.0
 *
 * @param  对象类型
 */
public class LuckProperty
{
    private LuckPropertyType type;
    private T field;

    public LuckProperty(T field)
    {
        super();
        this.type = LuckPropertyType.BINDPARENT;
        this.field = field;
    }

    public LuckProperty(LuckPropertyType type, T field)
    {
        super();
        this.type = type;
        this.field = field;
    }

    public static  LuckProperty getBindParentProp(T field)
    {
        return new LuckProperty(LuckPropertyType.BINDPARENT, field);
    }

    public static  LuckProperty getFxiProp(T field)
    {
        return new LuckProperty(LuckPropertyType.FIX, field);
    }

    public void setType(LuckPropertyType type)
    {
        this.type = type;
    }

    public LuckPropertyType getType()
    {
        return type;
    }

    public T getField()
    {
        return field;
    }

    public void setField(T field)
    {
        this.field = field;
    }
    
    static public enum LuckPropertyType
    {
        BINDPARENT, FIX
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy