T
- the associated Comparable
JDK typepublic interface ComparableCellDefinition<T extends java.lang.Comparable<T>> extends CellDefinition<T>
CellDefinition.CellImpl<T>, CellDefinition.Impl<T>
Modifier and Type | Method and Description |
---|---|
default BuildableComparableOptionalFunction<Record<?>,T> |
value()
Returns a function that extracts the value of this cell from a record.
|
default BuildableComparableFunction<Record<?>,T> |
valueOr(T 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 BuildableComparableFunction<Record<?>,T> |
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 BuildableComparableOptionalFunction<Record<?>,T> value()
CellDefinition
value
in interface CellDefinition<T extends java.lang.Comparable<T>>
default BuildableComparableFunction<Record<?>,T> valueOr(T otherwise)
CellDefinition
valueOr
in interface CellDefinition<T extends java.lang.Comparable<T>>
otherwise
- default value for absent cellsdefault BuildableComparableFunction<Record<?>,T> valueOrFail()
CellDefinition
NoSuchElementException
if the cell is absent.valueOrFail
in interface CellDefinition<T extends java.lang.Comparable<T>>