Record Class IntBound.Finite
java.lang.Object
java.lang.Record
tools.refinery.logic.term.intinterval.IntBound.Finite
- All Implemented Interfaces:
IntBound
- Enclosing interface:
IntBound
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntBound
IntBound.Finite, IntBound.Infinite -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntBound.Finitestatic final IntBound.Finitestatic final IntBound.Finite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(IntBound other, RoundingMode roundingMode) intcompareBound(IntBound other) div(IntBound other, RoundingMode roundingMode) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFinite()booleanlessThanOrEquals(IntBound other) minus(RoundingMode roundingMode) mul(IntBound other, RoundingMode roundingMode) intsignum()sub(IntBound other, RoundingMode roundingMode) @NotNull StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from interface IntBound
greaterThanOrEquals, max, min
-
Field Details
-
ZERO
-
ONE
-
NEGATIVE_ONE
-
-
Constructor Details
-
Finite
Creates an instance of aFiniterecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
lessThanOrEquals
- Specified by:
lessThanOrEqualsin interfaceIntBound
-
isFinite
-
minus
-
add
-
sub
-
mul
-
div
-
signum
-
toString
-
compareBound
- Specified by:
compareBoundin interfaceIntBound
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-