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