com.nineoldandroids.util
Class FloatProperty<T>

java.lang.Object
  extended by com.nineoldandroids.util.Property<T,Float>
      extended by com.nineoldandroids.util.FloatProperty<T>
Type Parameters:
T - The class on which the Property is declared.

public abstract class FloatProperty<T>
extends Property<T,Float>

An implementation of Property to be used specifically with fields of type float. This type-specific subclass enables performance benefit by allowing calls to a set() function that takes the primitive float type and avoids autoboxing and other overhead associated with the Float class.


Constructor Summary
FloatProperty(String name)
           
 
Method Summary
 void set(T object, Float value)
          Sets the value on object which this property represents.
abstract  void setValue(T object, float value)
          A type-specific override of the set(Object, Float) that is faster when dealing with fields of type float.
 
Methods inherited from class com.nineoldandroids.util.Property
get, getName, getType, isReadOnly, of
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatProperty

public FloatProperty(String name)
Method Detail

setValue

public abstract void setValue(T object,
                              float value)
A type-specific override of the set(Object, Float) that is faster when dealing with fields of type float.


set

public final void set(T object,
                      Float 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,Float>