Interface Cell<T>

Type Parameters:
T - the cell value type
All Superinterfaces:
TypedValue<T>
All Known Implementing Classes:
CellDefinition.CellImpl

public interface Cell<T> extends TypedValue<T>
A representation of a cell. A cell is the smallest data storage unit within a dataset. A cell couples a CellDefinition with a non-null value corresponding to the definitions type.
  • Method Details

    • definition

      CellDefinition<T> definition()
      Returns the definition for this cell.
      Returns:
      the cell definition
    • value

      T value()
      Returns the value held within this cell.
      Specified by:
      value in interface TypedValue<T>
      Returns:
      the cell value
    • type

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

      boolean equals(Object o)
      Compares the supplied object with this cell for equality. Returns true if the supplied object is a cell with same definition and value.
      Overrides:
      equals in class Object
      Parameters:
      o - object to be compared for equality with this cell
      Returns:
      true if the given object is equal to this cell
    • cell

      static <T> Cell<T> cell(String name, T value)
      Creates a new cell.

      The returned cell has definition with the supplied name, and a type derived from the type of the supplied value.

      Type Parameters:
      T - JDK type of the returned cell
      Parameters:
      name - cell definition name
      value - cell value
      Returns:
      a new cell