Interface IntCellDefinition

All Superinterfaces:
CellDefinition<Integer>, ComparableCellDefinition<Integer>

public interface IntCellDefinition extends ComparableCellDefinition<Integer>
Definition of a integer cell.
  • Method Details

    • intValueOr

      default BuildableToIntFunction<CellCollection> intValueOr(int otherwise)
      Returns a function that extracts this cells value from a record.

      If this cell is absent from a record then the returned value is sourced from the given supplier.

      Parameters:
      otherwise - supplier to use in this cells absence
      Returns:
      function extracting this cell
    • intValueOrFail

      default BuildableToIntFunction<CellCollection> intValueOrFail()
      Returns a function that extracts this cells value from a record.

      If this cell is absent from a record then a NoSuchElementException is thrown.

      Returns:
      function extracting this cell