Interface BytesCellDefinition
- All Superinterfaces:
CellDefinition<byte[]>
Definition of a
byte array
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 BuildableBytesFunction<CellCollection>
valueOr
(byte[] otherwise) Returns a function that extracts the value of this cell from a record or uses the given default if the cell is absent.default BuildableBytesFunction<CellCollection>
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<byte[]>
- 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<byte[]>
- 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<byte[]>
- Returns:
- a cell extracting function
-