Class TypedValue.Impl<T>

java.lang.Object
com.terracottatech.store.TypedValue.Impl<T>
Type Parameters:
T - the type parameter
All Implemented Interfaces:
TypedValue<T>
Enclosing interface:
TypedValue<T>

public static class TypedValue.Impl<T> extends Object implements TypedValue<T>
Implementation class.
  • Constructor Details

    • Impl

      public Impl(Type<T> type, T value)
      Instantiates a new .
      Parameters:
      type - the type
      value - the value
  • Method Details

    • type

      public Type<T> type()
      Description copied from interface: TypedValue
      Returns the type of this value.
      Specified by:
      type in interface TypedValue<T>
      Returns:
      definition type
    • value

      public T value()
      Description copied from interface: TypedValue
      Returns the value held in this TypedValue instance.
      Specified by:
      value in interface TypedValue<T>
      Returns:
      the value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object