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

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

    • integerRange

      public static final IntegerRange integerRange(Integer lower, Integer upper)
      Create a new IntegerRange with a inclusive lower bound and an exclusive upper bound.
    • integerRange

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