Interface DoubleCellDefinition
- All Superinterfaces:
CellDefinition<Double>
,ComparableCellDefinition<Double>
Definition of a
double
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 BuildableToDoubleFunction<CellCollection>
doubleValueOr
(double otherwise) Returns a function that extracts this cells value from a record.default BuildableToDoubleFunction<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
-
doubleValueOr
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
-
doubleValueOrFail
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
-