Interface PropertyAccessorFactory.PropertyAccessorLongValue
- All Superinterfaces:
PropertyAccessor
- Enclosing class:
PropertyAccessorFactory
protected static interface PropertyAccessorFactory.PropertyAccessorLongValue
extends PropertyAccessor
Interface for property accessors that handle long-typed properties.
Provides methods to get and set long values, with conversions to
other types as needed.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleangetBooleanValue(Object object) Gets the property value as a boolean.default bytegetByteValue(Object object) Gets the property value as a byte.default chargetCharValue(Object object) Gets the property value as a char.default doublegetDoubleValue(Object object) Gets the property value as a double.default floatgetFloatValue(Object object) Gets the property value as a float.default intgetIntValue(Object object) Gets the property value as an int.default ObjectGets the property value as an Object.default shortgetShortValue(Object object) Gets the property value as a short.default voidsetBooleanValue(Object object, boolean value) Sets the property value from a boolean.default voidsetByteValue(Object object, byte value) Sets the property value from a byte.default voidsetCharValue(Object object, char value) Sets the property value from a char.default voidsetDoubleValue(Object object, double value) Sets the property value from a double.default voidsetFloatValue(Object object, float value) Sets the property value from a float.default voidsetIntValue(Object object, int value) Sets the property value from an int.default voidSets the property value from an Object.default voidsetShortValue(Object object, short value) Sets the property value from a short.Methods inherited from interface PropertyAccessor
getLongValue, name, propertyClass, propertyType, setLongValue, supportGet, supportSet
-
Method Details
-
getObject
Description copied from interface:PropertyAccessorGets the property value as an Object.- Specified by:
getObjectin interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as Object
-
getByteValue
Description copied from interface:PropertyAccessorGets the property value as a byte.- Specified by:
getByteValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as byte
-
getCharValue
Description copied from interface:PropertyAccessorGets the property value as a char.- Specified by:
getCharValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as char
-
getShortValue
Description copied from interface:PropertyAccessorGets the property value as a short.- Specified by:
getShortValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as short
-
getIntValue
Description copied from interface:PropertyAccessorGets the property value as an int.- Specified by:
getIntValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as int
-
getFloatValue
Description copied from interface:PropertyAccessorGets the property value as a float.- Specified by:
getFloatValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as float
-
getDoubleValue
Description copied from interface:PropertyAccessorGets the property value as a double.- Specified by:
getDoubleValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as double
-
getBooleanValue
Description copied from interface:PropertyAccessorGets the property value as a boolean.- Specified by:
getBooleanValuein interfacePropertyAccessor- Parameters:
object- the object to get the property from- Returns:
- the property value as boolean
-
setObject
Description copied from interface:PropertyAccessorSets the property value from an Object.- Specified by:
setObjectin interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the value to set
-
setByteValue
Description copied from interface:PropertyAccessorSets the property value from a byte.- Specified by:
setByteValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the byte value to set
-
setCharValue
Description copied from interface:PropertyAccessorSets the property value from a char.- Specified by:
setCharValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the char value to set
-
setShortValue
Description copied from interface:PropertyAccessorSets the property value from a short.- Specified by:
setShortValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the short value to set
-
setIntValue
Description copied from interface:PropertyAccessorSets the property value from an int.- Specified by:
setIntValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the int value to set
-
setFloatValue
Description copied from interface:PropertyAccessorSets the property value from a float.- Specified by:
setFloatValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the float value to set
-
setDoubleValue
Description copied from interface:PropertyAccessorSets the property value from a double.- Specified by:
setDoubleValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the double value to set
-
setBooleanValue
Description copied from interface:PropertyAccessorSets the property value from a boolean.- Specified by:
setBooleanValuein interfacePropertyAccessor- Parameters:
object- the object to set the property onvalue- the boolean value to set
-