java.lang.Object
org.jooq.postgres.extensions.types.IntegerRange
- All Implemented Interfaces:
Serializable,Range<Integer>
A data type representing the PostgreSQL
int4range type.- Author:
- Lukas Eder
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static final IntegerRangeintegerRange(Integer lower, boolean lowerIncluding, Integer upper, boolean upperIncluding) Create a newIntegerRange.static final IntegerRangeintegerRange(Integer lower, Integer upper) Create a newIntegerRangewith a inclusive lower bound and an exclusive upper bound.booleanisEmpty()In PostgreSQL, a [x,x) range is considered "empty".final Integerlower()The lower bound of the range.final booleanWhether theRange.lower()bound of the range is included in the range.toString()final Integerupper()The upper bound of the range.final booleanWhether theRange.upper()bound of the range is included in the range.
-
Method Details
-
integerRange
Create a newIntegerRangewith 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 newIntegerRange. -
isEmpty
public boolean isEmpty()Description copied from interface:RangeIn PostgreSQL, a [x,x) range is considered "empty". -
hashCode
public int hashCode() -
equals
-
lower
Description copied from interface:RangeThe lower bound of the range. -
lowerIncluding
public final boolean lowerIncluding()Description copied from interface:RangeWhether theRange.lower()bound of the range is included in the range.- Specified by:
lowerIncludingin interfaceRange<T>
-
upper
Description copied from interface:RangeThe upper bound of the range. -
upperIncluding
public final boolean upperIncluding()Description copied from interface:RangeWhether theRange.upper()bound of the range is included in the range.- Specified by:
upperIncludingin interfaceRange<T>
-
toString
-