Package net.tangly.commons.lang
Record Class Interval<T extends Number>
java.lang.Object
java.lang.Record
net.tangly.commons.lang.Interval<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.lower()
Returns the value of thelower
record component.final String
toString()
Returns a string representation of this record class.upper()
Returns the value of theupper
record component.
-
Constructor Details
-
Interval
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
lower
Returns the value of thelower
record component.- Returns:
- the value of the
lower
record component
-
upper
Returns the value of theupper
record component.- Returns:
- the value of the
upper
record component
-