Class CellDefinition.Impl<T>

java.lang.Object
com.terracottatech.store.definition.CellDefinition.Impl<T>
Type Parameters:
T - definition JDK type
All Implemented Interfaces:
CellDefinition<T>
Enclosing interface:
CellDefinition<T>

public abstract static class CellDefinition.Impl<T> extends Object implements CellDefinition<T>
Internal interned definition implementation.
  • Method Details

    • name

      public final String name()
      Description copied from interface: CellDefinition
      Returns the name of this definition.
      Specified by:
      name in interface CellDefinition<T>
      Returns:
      definition name
    • type

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

      public final Cell<T> newCell(T value)
      Description copied from interface: CellDefinition
      Creates a new cell binding this definition to the given value.
      Specified by:
      newCell in interface CellDefinition<T>
      Parameters:
      value - value for the cell
      Returns:
      a cell
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object