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 BigDecimal
static final IntBound.Finite
static final BigDecimal
static final IntBound.Finite
static final IntBound.Finite
static final IntBound.Finite
static final IntBound.Finite
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(IntBound other, RoundingMode roundingMode) int
compareBound
(IntBound other) div
(IntBound other, RoundingMode roundingMode) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isFinite()
boolean
lessThanOrEquals
(IntBound other) minus
(RoundingMode roundingMode) mul
(IntBound other, RoundingMode roundingMode) int
signum()
sub
(IntBound other, RoundingMode roundingMode) @NotNull String
toString()
Returns a string representation of this record class.int
value()
Returns the value of thevalue
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aFinite
record class.- Parameters:
value
- the value for thevalue
record component
-
-
Method Details
-
lessThanOrEquals
- Specified by:
lessThanOrEquals
in 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:
compareBound
in 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 thevalue
record component.- Returns:
- the value of the
value
record component
-