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