Interface PropertyAccessorFactory.PropertyAccessorBigDecimal
- All Superinterfaces:
PropertyAccessor, PropertyAccessorFactory.PropertyAccessorObject
- Enclosing class:
PropertyAccessorFactory
protected static interface PropertyAccessorFactory.PropertyAccessorBigDecimal
extends PropertyAccessorFactory.PropertyAccessorObject
Interface for property accessors that handle BigDecimal-typed properties.
Provides methods to get and set BigDecimal values, with conversions to
other types as needed.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiongetBigDecimal(Object object) Gets the property value as a BigDecimal.default booleangetBooleanValue(Object object) Gets the property value as a boolean.default bytegetByteValue(Object object) Gets the property value as a byte.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 longgetLongValue(Object object) Gets the property value as a long.default ObjectGets the property value as an Object.default shortgetShortValue(Object object) Gets the property value as a short.voidsetBigDecimal(Object object, BigDecimal value) Sets the property value from a BigDecimal.default voidSets the property value from an Object.Methods inherited from interface PropertyAccessor
name, propertyClass, propertyType, supportGet, supportSetMethods inherited from interface PropertyAccessorFactory.PropertyAccessorObject
getCharValue, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue
-
Method Details
-
getByteValue
Description copied from interface:PropertyAccessorGets the property value as a byte.- Specified by:
getByteValuein interfacePropertyAccessor- Specified by:
getByteValuein interfacePropertyAccessorFactory.PropertyAccessorObject- Parameters:
object- the object to get the property from- Returns:
- the property value as byte
-
getShortValue
Description copied from interface:PropertyAccessorGets the property value as a short.- Specified by:
getShortValuein interfacePropertyAccessor- Specified by:
getShortValuein interfacePropertyAccessorFactory.PropertyAccessorObject- 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- Specified by:
getIntValuein interfacePropertyAccessorFactory.PropertyAccessorObject- Parameters:
object- the object to get the property from- Returns:
- the property value as int
-
getLongValue
Description copied from interface:PropertyAccessorGets the property value as a long.- Specified by:
getLongValuein interfacePropertyAccessor- Specified by:
getLongValuein interfacePropertyAccessorFactory.PropertyAccessorObject- Parameters:
object- the object to get the property from- Returns:
- the property value as long
-
getFloatValue
Description copied from interface:PropertyAccessorGets the property value as a float.- Specified by:
getFloatValuein interfacePropertyAccessor- Specified by:
getFloatValuein interfacePropertyAccessorFactory.PropertyAccessorObject- 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- Specified by:
getDoubleValuein interfacePropertyAccessorFactory.PropertyAccessorObject- 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- Specified by:
getBooleanValuein interfacePropertyAccessorFactory.PropertyAccessorObject- Parameters:
object- the object to get the property from- Returns:
- the property value as boolean
-
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
-
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
-
getBigDecimal
Gets the property value as a BigDecimal.- Parameters:
object- the object to get the property from- Returns:
- the property value as BigDecimal
-
setBigDecimal
Sets the property value from a BigDecimal.- Parameters:
object- the object to set the property onvalue- the BigDecimal value to set
-