Interface StringCellDefinition
- All Superinterfaces:
CellDefinition<String>,ComparableCellDefinition<String>
Definition of a
string 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 BuildableStringFunction<CellCollection>Returns a function that extracts the value of this cell from a record or uses the given default if the cell is absent.default BuildableStringFunction<CellCollection>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<String>- Specified by:
valuein interfaceComparableCellDefinition<String>- 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<String>- Specified by:
valueOrin interfaceComparableCellDefinition<String>- 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<String>- Specified by:
valueOrFailin interfaceComparableCellDefinition<String>- Returns:
- a cell extracting function
-