Interface ComparableCellDefinition<T extends Comparable<T>>
- Type Parameters:
T- the associatedComparableJDK 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 aNoSuchElementExceptionif the cell is absent.Methods inherited from interface com.terracottatech.store.definition.CellDefinition
exists, name, newCell, type
-
Method Details
-
value
Description copied from interface:CellDefinitionReturns a function that extracts the value of this cell from a record.- Specified by:
valuein interfaceCellDefinition<T extends Comparable<T>>- Returns:
- a cell extracting function
-
valueOr
Description copied from interface:CellDefinitionReturns a function that extracts the value of this cell from a record or uses the given default if the cell is absent.- Specified by:
valueOrin interfaceCellDefinition<T extends Comparable<T>>- Parameters:
otherwise- default value for absent cells- Returns:
- a cell extracting function
-
valueOrFail
Description copied from interface:CellDefinitionReturns a function that extracts the value of this cell from a record or throws aNoSuchElementExceptionif the cell is absent.- Specified by:
valueOrFailin interfaceCellDefinition<T extends Comparable<T>>- Returns:
- a cell extracting function
-