Package icyllis.modernui.util
Class Property<T,V>
java.lang.Object
icyllis.modernui.util.Property<T,V>
- Type Parameters:
T
- the class on which the property is declared.V
- the type that this property represents.
- Direct Known Subclasses:
FloatProperty
,IntProperty
A property is an abstraction that can be used to represent a mutable value that is held
in a host object. The Property's
set(Object, Object)
or get(Object)
methods can be implemented in terms of the private fields of the host object, or via "setter" and
"getter" methods or by some other mechanism, as appropriate.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Property
A constructor that takes an identifying name andtype
for the property.
-
-
Method Details
-
set
Sets the value onobject
which this property represents. If the method is unable to set the value on the target object it will throw anUnsupportedOperationException
exception. -
get
Returns the current value that this property represents on the givenobject
. -
getName
Returns the name for this property. -
getType
Returns the type for this property.
-