IntProperty


public abstract class IntProperty
extends Property<T, Integer>

java.lang.Object
   ↳ android.util.Property<T, java.lang.Integer>
     ↳ android.util.IntProperty<T>


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.

Summary

Public constructors

IntProperty(String name)

Public methods

final 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 variant of set(java.lang.Object, java.lang.Integer) that is faster when dealing with fields of type int.

Inherited methods

Public constructors

IntProperty

Added in API level 24
public IntProperty (String name)

Parameters
name String

Public methods

set

Added in API level 24
public final void set (T object, 
                Integer value)

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.

Parameters
object T

value Integer

setValue

Added in API level 24
public abstract void setValue (T object, 
                int value)

A type-specific variant of set(java.lang.Object, java.lang.Integer) that is faster when dealing with fields of type int.

Parameters
object T

value int