T - the type of the object containing the propertystatic final class PropertyAccessorFactory.FunctionAccessorFloatValue<T> extends FunctionAccessor<T> implements PropertyAccessorFactory.PropertyAccessorFloatValue
| Modifier and Type | Field and Description |
|---|---|
private ToFloatFunction<T> |
getterFunc |
private ObjFloatConsumer<T> |
setterFunc |
exceptionHandler, getter, name, propertyClass, propertyType, setter| Constructor and Description |
|---|
FunctionAccessorFloatValue(java.lang.String name,
ToFloatFunction<T> getterFunc,
ObjFloatConsumer<T> setterFunc) |
| Modifier and Type | Method and Description |
|---|---|
float |
getFloatValue(java.lang.Object object)
Gets the property value as a float.
|
void |
setFloatValue(java.lang.Object object,
float value)
Sets the property value from a float.
|
errorForGet, errorForSet, name, propertyClass, propertyType, supportGet, supportSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBooleanValue, getByteValue, getCharValue, getDoubleValue, getIntValue, getLongValue, getObject, getShortValue, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setIntValue, setLongValue, setObject, setShortValuename, propertyClass, propertyType, supportGet, supportSetprivate final ToFloatFunction<T> getterFunc
private final ObjFloatConsumer<T> setterFunc
public FunctionAccessorFloatValue(java.lang.String name,
ToFloatFunction<T> getterFunc,
ObjFloatConsumer<T> setterFunc)
public float getFloatValue(java.lang.Object object)
PropertyAccessorgetFloatValue in interface PropertyAccessorobject - the object to get the property frompublic void setFloatValue(java.lang.Object object,
float value)
PropertyAccessorsetFloatValue in interface PropertyAccessorobject - the object to set the property onvalue - the float value to set