Record Class Range.Bounded<A>
java.lang.Object
java.lang.Record
io.codemine.java.postgresql.codecs.Range.Bounded<A>
- Record Components:
lower- the inclusive lower bound, ornullfor negative infinityupper- the exclusive upper bound, ornullfor positive infinity
- All Implemented Interfaces:
Range<A>
A bounded range. After PostgreSQL normalization, the lower bound is inclusive and the upper
bound is exclusive.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.codemine.java.postgresql.codecs.Range
Range.Bounded<A>, Range.Empty<A> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.lower()Returns the value of thelowerrecord component.toString()Returns a string representation of this record class.upper()Returns the value of theupperrecord component.
-
Constructor Details
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
lower
Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-
upper
Returns the value of theupperrecord component.- Returns:
- the value of the
upperrecord component
-