Interface LongCellDefinition

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

public interface LongCellDefinition extends ComparableCellDefinition<Long>
Definition of a long cell.
  • Method Details

    • longValueOr

      default BuildableToLongFunction<CellCollection> longValueOr(long otherwise)
      Returns a function that extracts this cells value from a record.

      If this cell is absent from a record then the supplied value is used.

      Parameters:
      otherwise - value to use in this cells absence
      Returns:
      function extracting this cell
    • longValueOrFail

      default BuildableToLongFunction<CellCollection> longValueOrFail()
      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