Interface ListCellDefinition
- All Superinterfaces:
CellDefinition<StoreList>
Definition of a
StoreList 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 TypeMethodDescriptionConstruct a potentially portable find function.findOrElse(String dotSpec, StoreList otherwise) Construct a potentially portable find function.findOrFail(String dotSpec) Construct a potentially portable find function.value()Returns a function that extracts the value of this cell from a record.default BuildableListFunction<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 BuildableListFunction<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
-
find
Construct a potentially portable find function. SeeComplexData.find(String)for more info. This call will skip any records which do not have this cell.- Parameters:
dotSpec- find specification- Returns:
- Find function
-
findOrFail
Construct a potentially portable find function. SeeComplexData.find(String)for more info. This call will throw an exception if any records do not have this cell.- Parameters:
dotSpec- find specification- Returns:
- Find function
-
findOrElse
default BuildableTypedValueSelectionFunction<CellCollection> findOrElse(String dotSpec, StoreList otherwise) Construct a potentially portable find function. SeeComplexData.find(String)for more info. If the cell does not exist, the provided StoreMap will be used to evaluate the find against.- Parameters:
dotSpec- find specificationotherwise- alternative if cell is missing.- Returns:
- Find function
-
value
Description copied from interface:CellDefinitionReturns a function that extracts the value of this cell from a record.- Specified by:
valuein interfaceCellDefinition<StoreList>- 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<StoreList>- 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<StoreList>- Returns:
- a cell extracting function
-