com.nineoldandroids.util
Class IntProperty<T>
java.lang.Object
com.nineoldandroids.util.Property<T,Integer>
com.nineoldandroids.util.IntProperty<T>
- Type Parameters:
T - The class on which the Property is declared.
public abstract class IntProperty<T>
- extends Property<T,Integer>
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 set() function that takes the primitive
int type and avoids autoboxing and other overhead associated with the
Integer class.
|
Method Summary |
void |
set(T object,
Integer value)
Sets the value on object which this property represents. |
abstract void |
setValue(T object,
int value)
A type-specific override of the set(Object, Integer) that is faster when dealing
with fields of type int. |
IntProperty
public IntProperty(String name)
setValue
public abstract void setValue(T object,
int value)
- A type-specific override of the
set(Object, Integer) that is faster when dealing
with fields of type int.
set
public final void set(T object,
Integer value)
- Description copied from class:
Property
- Sets the value on
object which this property represents. If the method is unable
to set the value on the target object it will throw an UnsupportedOperationException
exception.
- Overrides:
set in class Property<T,Integer>