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 tools.refinery.logic.term.intinterval.IntBound
IntBound.Finite, IntBound.Infinite -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigDecimalstatic final IntBound.Finitestatic final BigDecimalstatic final IntBound.Finitestatic 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.intvalue()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.logic.term.intinterval.IntBound
greaterThanOrEquals, max, min
-
Field Details
-
ZERO
-
ONE
-
NEGATIVE_ONE
-
MIN_VALUE
-
MAX_VALUE
-
MIN_DECIMAL_VALUE
-
MAX_DECIMAL_VALUE
-
-
Constructor Details
-
Finite
public Finite(int value) Creates an instance of aFiniterecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
lessThanOrEquals
- Specified by:
lessThanOrEqualsin interfaceIntBound
-
isFinite
public boolean isFinite() -
minus
-
add
-
sub
-
mul
-
div
-
signum
public int signum() -
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. -
compareBound
- Specified by:
compareBoundin interfaceIntBound
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-