Interface DoubleCellDefinition

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

public interface DoubleCellDefinition extends ComparableCellDefinition<Double>
Definition of a double cell.
  • Method Details

    • doubleValueOr

      default BuildableToDoubleFunction<CellCollection> doubleValueOr(double 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
    • doubleValueOrFail

      default BuildableToDoubleFunction<CellCollection> doubleValueOrFail()
      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