Interface SerializingValueHolder<T,S extends Serializable>

Type Parameters:
T - The original value data type.
S - The serialized value data type.

public interface SerializingValueHolder<T,S extends Serializable>
Aspect definition for providing serialization means for value's of a specific type.

It is important to note that the serialized value data type must conform to either of these simple types:

or of the following composed types, whose elements again must conform to this rule:
Since:
5.1.25
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The aspect's type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Provide a serialized form of the currently stored value.
    Get the current value stored by this value holder.
    boolean
    Indicates that the currently hold value is considered to represent an empty value.
    void
    setSerializedValue(S serialization)
    Receive a serialized form as value to store.
    void
    setValue(T value)
    Set the given value to be stored by this value holder.
  • Field Details

  • Method Details

    • getValue

      @Nullable T getValue()
      Get the current value stored by this value holder.
      Returns:
      The currently stored value.
      Since:
      5.1.25
    • setValue

      void setValue(@Nullable T value)
      Set the given value to be stored by this value holder.
      Parameters:
      value - A value to store.
      Since:
      5.1.25
    • isEmpty

      boolean isEmpty()
      Indicates that the currently hold value is considered to represent an empty value.
      Returns:
      true, if value is considered empty.
      Since:
      5.1.30
    • getSerializedValue

      @Nullable S getSerializedValue()
      Provide a serialized form of the currently stored value.
      Returns:
      The serialized value.
      Since:
      5.1.25
    • setSerializedValue

      void setSerializedValue(@Nullable S serialization)
      Receive a serialized form as value to store.
      Parameters:
      serialization - A serialized value.
      Since:
      5.1.25