Package com.terracottatech.store
Interface Cell<T>
- Type Parameters:
T
- the cell value type
- All Superinterfaces:
TypedValue<T>
- All Known Implementing Classes:
CellDefinition.CellImpl
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.terracottatech.store.TypedValue
TypedValue.Impl<T>
-
Method Summary
-
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 interfaceTypedValue<T>
- Returns:
- the cell value
-
type
Description copied from interface:TypedValue
Returns the type of this value.- Specified by:
type
in interfaceTypedValue<T>
- Returns:
- definition type
-
equals
Compares the supplied object with this cell for equality. Returnstrue
if the supplied object is a cell with same definition and value. -
cell
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 namevalue
- cell value- Returns:
- a new cell
-