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