Package icyllis.modernui.util
Class IntProperty<T>
java.lang.Object
icyllis.modernui.util.Property<T,Integer>
icyllis.modernui.util.IntProperty<T>
- Type Parameters:
T- The class on which the Property is declared.
An implementation of
Property to be used specifically with fields of type
int. This type-specific subclass enables performance benefit by allowing
calls to a setValue() function that takes the primitive
int type and avoids autoboxing and other overhead associated with the
Integer class.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IntProperty
-
-
Method Details
-
setValue
A type-specific variant ofset(Object, Integer)that is faster when dealing with fields of typeint. -
set
Deprecated.Description copied from class:PropertySets the value onobjectwhich this property represents. If the method is unable to set the value on the target object it will throw anUnsupportedOperationExceptionexception.
-