Interface LongCellDefinition
- All Superinterfaces:
CellDefinition<Long>
,ComparableCellDefinition<Long>
Definition of a
long
cell.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.terracottatech.store.definition.CellDefinition
CellDefinition.CellImpl<T>, CellDefinition.Impl<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault BuildableToLongFunction<CellCollection>
longValueOr
(long otherwise) Returns a function that extracts this cells value from a record.default BuildableToLongFunction<CellCollection>
Returns a function that extracts this cells value from a record.Methods inherited from interface com.terracottatech.store.definition.CellDefinition
exists, name, newCell, type
Methods inherited from interface com.terracottatech.store.definition.ComparableCellDefinition
value, valueOr, valueOrFail
-
Method Details
-
longValueOr
Returns a function that extracts this cells value from a record.If this cell is absent from a record then the supplied value is used.
- Parameters:
otherwise
- value to use in this cells absence- Returns:
- function extracting this cell
-
longValueOrFail
Returns a function that extracts this cells value from a record.If this cell is absent from a record then a
NoSuchElementException
is thrown.- Returns:
- function extracting this cell
-