T - the type of the object containing the propertystatic final class PropertyAccessorFactory.FunctionAccessorBigDecimal<T> extends FunctionAccessor<T> implements PropertyAccessorFactory.PropertyAccessorBigDecimal
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.Function<T,java.math.BigDecimal> |
getterFunc |
private java.util.function.BiConsumer<T,java.math.BigDecimal> |
setterFunc |
exceptionHandler, getter, name, propertyClass, propertyType, setter| Constructor and Description |
|---|
FunctionAccessorBigDecimal(java.lang.String name,
java.util.function.Function<T,java.math.BigDecimal> getterFunc,
java.util.function.BiConsumer<T,java.math.BigDecimal> setterFunc,
java.util.function.BiFunction<PropertyAccessor,java.lang.Throwable,java.lang.RuntimeException> exceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getBigDecimal(java.lang.Object object)
Gets the property value as a BigDecimal.
|
void |
setBigDecimal(java.lang.Object object,
java.math.BigDecimal value)
Sets the property value from a BigDecimal.
|
errorForGet, errorForSet, name, propertyClass, propertyType, supportGet, supportSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBooleanValue, getByteValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getObject, getShortValue, setObjectgetCharValue, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValuename, propertyClass, propertyType, supportGet, supportSetprivate final java.util.function.Function<T,java.math.BigDecimal> getterFunc
private final java.util.function.BiConsumer<T,java.math.BigDecimal> setterFunc
public FunctionAccessorBigDecimal(java.lang.String name,
java.util.function.Function<T,java.math.BigDecimal> getterFunc,
java.util.function.BiConsumer<T,java.math.BigDecimal> setterFunc,
java.util.function.BiFunction<PropertyAccessor,java.lang.Throwable,java.lang.RuntimeException> exceptionHandler)
public java.math.BigDecimal getBigDecimal(java.lang.Object object)
PropertyAccessorFactory.PropertyAccessorBigDecimalgetBigDecimal in interface PropertyAccessorFactory.PropertyAccessorBigDecimalobject - the object to get the property frompublic void setBigDecimal(java.lang.Object object,
java.math.BigDecimal value)
PropertyAccessorFactory.PropertyAccessorBigDecimalsetBigDecimal in interface PropertyAccessorFactory.PropertyAccessorBigDecimalobject - the object to set the property onvalue - the BigDecimal value to set