IntProperty
public
abstract
class
IntProperty
extends Property<T, Integer>
java.lang.Object | ||
↳ | android.util.Property<T, java.lang.Integer> | |
↳ | androidx.core.animation.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)
A constructor that takes an identifying name for the int property. |
|
IntProperty()
A constructor that creates an int property instance with an empty name. |
Public methods | |
---|---|
final
void
|
set(T object, Integer value)
|
abstract
void
|
setValue(T object, int value)
A type-specific variant of |
Inherited methods | |
---|---|
Public constructors
IntProperty
public IntProperty (String name)
A constructor that takes an identifying name for the int property. This name
will show up as a part of ObjectAnimator.getPropertyName()
when the
ObjectAnimator
is created with a Property
object as its animation property.
This name will also appear in systrace as a part of the animator name.
Parameters | |
---|---|
name |
String : name to be used to identify the property |
See also:
IntProperty
public IntProperty ()
A constructor that creates an int property instance with an empty name. To create a named
int property, see IntProperty(String)
See also:
Public methods
set
public final void set (T object, Integer value)
Parameters | |
---|---|
object |
T |
value |
Integer |
setValue
public abstract void setValue (T object, int value)
A type-specific variant of set(Object, Integer)
that is faster when dealing
with fields of type int
.
Parameters | |
---|---|
object |
T |
value |
int |