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