java.lang.Object
org.jooq.postgres.extensions.types.DateRange
All Implemented Interfaces:
Serializable, Range<Date>

public final class DateRange extends Object
A data type representing the PostgreSQL daterange type.
Author:
Lukas Eder
See Also:
  • Method Details

    • dateRange

      public static final DateRange dateRange(Date lower, Date upper)
      Create a new DateRange with a inclusive lower bound and an exclusive upper bound.
    • dateRange

      public static final DateRange dateRange(Date lower, boolean lowerIncluding, Date upper, boolean upperIncluding)
      Create a new DateRange.
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Range
      In PostgreSQL, a [x,x) range is considered "empty".
      Specified by:
      isEmpty in interface Range<T>
    • hashCode

      public int hashCode()
    • equals

      public boolean equals(Object obj)
    • lower

      @Nullable public final Date lower()
      Description copied from interface: Range
      The lower bound of the range.
      Specified by:
      lower in interface Range<T>
    • lowerIncluding

      public final boolean lowerIncluding()
      Description copied from interface: Range
      Whether the Range.lower() bound of the range is included in the range.
      Specified by:
      lowerIncluding in interface Range<T>
    • upper

      @Nullable public final Date upper()
      Description copied from interface: Range
      The upper bound of the range.
      Specified by:
      upper in interface Range<T>
    • upperIncluding

      public final boolean upperIncluding()
      Description copied from interface: Range
      Whether the Range.upper() bound of the range is included in the range.
      Specified by:
      upperIncluding in interface Range<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object