public interface StringCellDefinition extends ComparableCellDefinition<java.lang.String>
string
cell.CellDefinition.CellImpl<T>, CellDefinition.Impl<T>
Modifier and Type | Method and Description |
---|---|
default BuildableStringOptionalFunction<Record<?>> |
value()
Returns a function that extracts the value of this cell from a record.
|
default BuildableStringFunction<Record<?>> |
valueOr(java.lang.String 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 BuildableStringFunction<Record<?>> |
valueOrFail()
Returns a function that extracts the value of this cell from a record or
throws a
NoSuchElementException if the cell is absent. |
define, defineBool, defineBytes, defineChar, defineDouble, defineInt, defineLong, defineString, exists, name, newCell, type
default BuildableStringOptionalFunction<Record<?>> value()
CellDefinition
value
in interface CellDefinition<java.lang.String>
value
in interface ComparableCellDefinition<java.lang.String>
default BuildableStringFunction<Record<?>> valueOr(java.lang.String otherwise)
CellDefinition
valueOr
in interface CellDefinition<java.lang.String>
valueOr
in interface ComparableCellDefinition<java.lang.String>
otherwise
- default value for absent cellsdefault BuildableStringFunction<Record<?>> valueOrFail()
CellDefinition
NoSuchElementException
if the cell is absent.valueOrFail
in interface CellDefinition<java.lang.String>
valueOrFail
in interface ComparableCellDefinition<java.lang.String>