T - the type of the object containing the propertystatic final class PropertyAccessorFactory.FunctionAccessorDouble<T> extends FunctionAccessor<T> implements PropertyAccessorFactory.PropertyAccessorDouble
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.Function<T,java.lang.Double> |
getterFunc |
private java.util.function.BiConsumer<T,java.lang.Double> |
setterFunc |
exceptionHandler, getter, name, propertyClass, propertyType, setter| Constructor and Description |
|---|
FunctionAccessorDouble(java.lang.String name,
java.util.function.Function<T,java.lang.Double> getterFunc,
java.util.function.BiConsumer<T,java.lang.Double> setterFunc) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getDouble(java.lang.Object object)
Gets the property value as a double.
|
void |
setDouble(java.lang.Object object,
java.lang.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, getDoubleValue, getFloatValue, getIntValue, getLongValue, getObject, getShortValue, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setObject, setShortValuename, propertyClass, propertyType, supportGet, supportSetprivate final java.util.function.Function<T,java.lang.Double> getterFunc
private final java.util.function.BiConsumer<T,java.lang.Double> setterFunc
public java.lang.Double getDouble(java.lang.Object object)
PropertyAccessorFactory.PropertyAccessorDoublegetDouble in interface PropertyAccessorFactory.PropertyAccessorDoubleobject - the object to get the property frompublic void setDouble(java.lang.Object object,
java.lang.Double value)
PropertyAccessorFactory.PropertyAccessorDoublesetDouble in interface PropertyAccessorFactory.PropertyAccessorDoubleobject - the object to set the property onvalue - the double value to set