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