public interface IntCellDefinition extends ComparableCellDefinition<java.lang.Integer>
integer
cell.CellDefinition.CellImpl<T>, CellDefinition.Impl<T>
Modifier and Type | Method and Description |
---|---|
default BuildableToIntFunction<Record<?>> |
intValueOr(int otherwise)
Returns a function that extracts this cells value from a record.
|
default BuildableToIntFunction<Record<?>> |
intValueOrFail()
Returns a function that extracts this cells value from a record.
|
value, valueOr, valueOrFail
define, defineBool, defineBytes, defineChar, defineDouble, defineInt, defineLong, defineString, exists, name, newCell, type
default BuildableToIntFunction<Record<?>> intValueOr(int otherwise)
If this cell is absent from a record then the returned value is sourced from the given supplier.
otherwise
- supplier to use in this cells absencedefault BuildableToIntFunction<Record<?>> intValueOrFail()
If this cell is absent from a record then a NoSuchElementException
is thrown.