Interface IntCellDefinition
- All Superinterfaces:
CellDefinition<Integer>
,ComparableCellDefinition<Integer>
Definition of a
integer
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 BuildableToIntFunction<CellCollection>
intValueOr
(int otherwise) Returns a function that extracts this cells value from a record.default BuildableToIntFunction<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
-
intValueOr
Returns a function that extracts this cells value from a record.If this cell is absent from a record then the returned value is sourced from the given supplier.
- Parameters:
otherwise
- supplier to use in this cells absence- Returns:
- function extracting this cell
-
intValueOrFail
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
-