Interface ComparableCellDefinition<T extends Comparable<T>>
- Type Parameters:
T
- the associatedComparable
JDK type
- All Superinterfaces:
CellDefinition<T>
- All Known Subinterfaces:
BoolCellDefinition
,CharCellDefinition
,DoubleCellDefinition
,IntCellDefinition
,LongCellDefinition
,StringCellDefinition
Definition of a comparable 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 TypeMethodDescriptionvalue()
Returns a function that extracts the value of this cell from a record.default BuildableComparableFunction<CellCollection,
T> Returns a function that extracts the value of this cell from a record or uses the given default if the cell is absent.default BuildableComparableFunction<CellCollection,
T> Returns a function that extracts the value of this cell from a record or throws aNoSuchElementException
if the cell is absent.Methods inherited from interface com.terracottatech.store.definition.CellDefinition
exists, name, newCell, type
-
Method Details
-
value
Description copied from interface:CellDefinition
Returns a function that extracts the value of this cell from a record.- Specified by:
value
in interfaceCellDefinition<T extends Comparable<T>>
- Returns:
- a cell extracting function
-
valueOr
Description copied from interface:CellDefinition
Returns a function that extracts the value of this cell from a record or uses the given default if the cell is absent.- Specified by:
valueOr
in interfaceCellDefinition<T extends Comparable<T>>
- Parameters:
otherwise
- default value for absent cells- Returns:
- a cell extracting function
-
valueOrFail
Description copied from interface:CellDefinition
Returns a function that extracts the value of this cell from a record or throws aNoSuchElementException
if the cell is absent.- Specified by:
valueOrFail
in interfaceCellDefinition<T extends Comparable<T>>
- Returns:
- a cell extracting function
-