FileDocCategorySizeDatePackage
IntProperty.javaAPI DocAndroid 5.1 API1628Thu Mar 12 22:22:10 GMT 2015android.util

IntProperty

public abstract class IntProperty extends android.util.Property
An implementation of {@link android.util.Property} to be used specifically with fields of type int. This type-specific subclass enables performance benefit by allowing calls to a {@link #set(Object, Integer) set()} function that takes the primitive int type and avoids autoboxing and other overhead associated with the Integer class.
param
The class on which the Property is declared.
hide

Fields Summary
Constructors Summary
public IntProperty(String name)

        super(Integer.class, name);
    
Methods Summary
public final voidset(T object, java.lang.Integer value)

        setValue(object, value.intValue());
    
public abstract voidsetValue(T object, int value)
A type-specific override of the {@link #set(Object, Integer)} that is faster when dealing with fields of type int.