All Superinterfaces:
Serializable
All Known Implementing Classes:
BigDecimalRange, DateRange, IntegerRange, LocalDateRange, LocalDateTimeRange, LongRange, OffsetDateTimeRange, TimestampRange

public interface Range<T> extends Serializable
A RANGE type.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    In PostgreSQL, a [x,x) range is considered "empty".
    The lower bound of the range.
    boolean
    Whether the lower() bound of the range is included in the range.
    The upper bound of the range.
    boolean
    Whether the upper() bound of the range is included in the range.
  • Method Details

    • isEmpty

      boolean isEmpty()
      In PostgreSQL, a [x,x) range is considered "empty".
    • lower

      @Nullable T lower()
      The lower bound of the range.
    • lowerIncluding

      boolean lowerIncluding()
      Whether the lower() bound of the range is included in the range.
    • upper

      @Nullable T upper()
      The upper bound of the range.
    • upperIncluding

      boolean upperIncluding()
      Whether the upper() bound of the range is included in the range.