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

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

    • timestampRange

      public static final TimestampRange timestampRange(Timestamp lower, Timestamp upper)
      Create a new TimestampRange with a inclusive lower bound and an exclusive upper bound.
    • timestampRange

      public static final TimestampRange timestampRange(Timestamp lower, boolean lowerIncluding, Timestamp upper, boolean upperIncluding)
      Create a new TimestampRange.
    • 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>
    • lower

      @Nullable public final Timestamp 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 Timestamp 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>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object