Interface Timespan.Interval.Modifier<T>

Enclosing interface:
Timespan.Interval<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Timespan.Interval.Modifier<T>
Functional interface to obtain information from the PostgreSQL type modifier applied to the type.
  • Method Details

    • modify

      Returns an Interval function possibly tailored ("curried") with the values from a PostgreSQL type modifier applied to the type.

      The notional fields to be present in the interval are indicated by fields; the SQL standard defines more than three of these, which PostgreSQL combines into the three components actually stored. In a valid type modifier, the fields set must equal one of the members of ALLOWED_FIELDS: one of the named constants in this interface or the empty set. If it is empty, the type modifier does not constrain the fields that may be present. In practice, it is the finest field allowed in the type modifier that matters; PostgreSQL rounds away portions of an interval finer than that, but applies no special treatment based on the coarsest field the type modifier mentions.

      The desired number of seconds digits to the right of the decimal point is indicated by precision if present, which must be between 0 and MAX_INTERVAL_PRECISION inclusive. In a valid type modifier, when this is specified, fields must either include SECONDS, or be unspecified.