T
- The class on which the Property is declared.public abstract class IntProperty<T> extends Property<T,Integer>
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.构造器和说明 |
---|
IntProperty(String name) |
public IntProperty(String name)
public abstract void setValue(T object, int value)
set(Object, Integer)
that is faster when dealing
with fields of type int
.