Interface PropertyAccessorFactory.PropertyAccessorObject

All Superinterfaces:
PropertyAccessor
All Known Subinterfaces:
PropertyAccessorFactory.PropertyAccessorBigDecimal, PropertyAccessorFactory.PropertyAccessorBigInteger, PropertyAccessorFactory.PropertyAccessorBoolean, PropertyAccessorFactory.PropertyAccessorByte, PropertyAccessorFactory.PropertyAccessorCharacter, PropertyAccessorFactory.PropertyAccessorDouble, PropertyAccessorFactory.PropertyAccessorFloat, PropertyAccessorFactory.PropertyAccessorInteger, PropertyAccessorFactory.PropertyAccessorLong, PropertyAccessorFactory.PropertyAccessorNumber, PropertyAccessorFactory.PropertyAccessorShort, PropertyAccessorFactory.PropertyAccessorString
Enclosing class:
PropertyAccessorFactory

protected static interface PropertyAccessorFactory.PropertyAccessorObject extends PropertyAccessor
Interface for property accessors that handle object-typed properties. Provides methods to get and set Object values, with conversions to other types as needed. This is the base interface for non-primitive types.
Since:
2.0
  • Method Details

    • getByteValue

      default byte getByteValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as a byte.
      Specified by:
      getByteValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as byte
    • getCharValue

      default char getCharValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as a char.
      Specified by:
      getCharValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as char
    • getShortValue

      default short getShortValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as a short.
      Specified by:
      getShortValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as short
    • getIntValue

      default int getIntValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as an int.
      Specified by:
      getIntValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as int
    • getLongValue

      default long getLongValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as a long.
      Specified by:
      getLongValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as long
    • getFloatValue

      default float getFloatValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as a float.
      Specified by:
      getFloatValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as float
    • getDoubleValue

      default double getDoubleValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as a double.
      Specified by:
      getDoubleValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as double
    • getBooleanValue

      default boolean getBooleanValue(Object object)
      Description copied from interface: PropertyAccessor
      Gets the property value as a boolean.
      Specified by:
      getBooleanValue in interface PropertyAccessor
      Parameters:
      object - the object to get the property from
      Returns:
      the property value as boolean
    • setByteValue

      default void setByteValue(Object object, byte value)
      Description copied from interface: PropertyAccessor
      Sets the property value from a byte.
      Specified by:
      setByteValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the byte value to set
    • setShortValue

      default void setShortValue(Object object, short value)
      Description copied from interface: PropertyAccessor
      Sets the property value from a short.
      Specified by:
      setShortValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the short value to set
    • setCharValue

      default void setCharValue(Object object, char value)
      Description copied from interface: PropertyAccessor
      Sets the property value from a char.
      Specified by:
      setCharValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the char value to set
    • setIntValue

      default void setIntValue(Object object, int value)
      Description copied from interface: PropertyAccessor
      Sets the property value from an int.
      Specified by:
      setIntValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the int value to set
    • setLongValue

      default void setLongValue(Object object, long value)
      Description copied from interface: PropertyAccessor
      Sets the property value from a long.
      Specified by:
      setLongValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the long value to set
    • setFloatValue

      default void setFloatValue(Object object, float value)
      Description copied from interface: PropertyAccessor
      Sets the property value from a float.
      Specified by:
      setFloatValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the float value to set
    • setDoubleValue

      default void setDoubleValue(Object object, double value)
      Description copied from interface: PropertyAccessor
      Sets the property value from a double.
      Specified by:
      setDoubleValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the double value to set
    • setBooleanValue

      default void setBooleanValue(Object object, boolean value)
      Description copied from interface: PropertyAccessor
      Sets the property value from a boolean.
      Specified by:
      setBooleanValue in interface PropertyAccessor
      Parameters:
      object - the object to set the property on
      value - the boolean value to set