Class BigDecimalRange

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

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

    • bigDecimalRange

      public static final BigDecimalRange bigDecimalRange(BigDecimal lower, BigDecimal upper)
      Create a new BigDecimalRange with a inclusive lower bound and an exclusive upper bound.
    • bigDecimalRange

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