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 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<byte[]>- 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<byte[]>- 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<byte[]>- Returns:
- a cell extracting function
-