Class CellDefinition.CellImpl<T>

java.lang.Object
com.terracottatech.store.definition.CellDefinition.CellImpl<T>
All Implemented Interfaces:
Cell<T>, TypedValue<T>
Enclosing interface:
CellDefinition<T>

public static class CellDefinition.CellImpl<T> extends Object implements Cell<T>
  • Method Details

    • definition

      public CellDefinition<T> definition()
      Description copied from interface: Cell
      Returns the definition for this cell.
      Specified by:
      definition in interface Cell<T>
      Returns:
      the cell definition
    • value

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

      public boolean equals(Object obj)
      Description copied from interface: Cell
      Compares the supplied object with this cell for equality. Returns true if the supplied object is a cell with same definition and value.
      Specified by:
      equals in interface Cell<T>
      Overrides:
      equals in class Object
      Parameters:
      obj - object to be compared for equality with this cell
      Returns:
      true if the given object is equal to this cell
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object