Record Class RealBound.Finite
java.lang.Object
java.lang.Record
tools.refinery.logic.term.realinterval.RealBound.Finite
- All Implemented Interfaces:
RealBound
- Enclosing interface:
RealBound
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.logic.term.realinterval.RealBound
RealBound.Finite, RealBound.Infinite
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RealBound.Finite
static final RealBound.Finite
static final RealBound.Finite
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(RealBound other, RoundingMode roundingMode) asInt
(RoundingMode roundingMode) int
compareBound
(RealBound other) div
(RealBound other, RoundingMode roundingMode) boolean
Indicates whether some other object is "equal to" this one.exp
(RoundingMode roundingMode) int
hashCode()
Returns a hash code value for this object.boolean
isFinite()
boolean
lessThanOrEquals
(RealBound other) log
(RoundingMode roundingMode) minus
(RoundingMode roundingMode) mul
(RealBound other, RoundingMode roundingMode) pow
(RealBound other, RoundingMode roundingMode) round
(RoundingMode roundingMode) int
signum()
sqrt
(RoundingMode roundingMode) sub
(RealBound other, RoundingMode roundingMode) @NotNull String
toString()
Returns a string representation of this record class.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.realinterval.RealBound
greaterThanOrEquals, max, min
-
Field Details
-
ZERO
-
ONE
-
NEGATIVE_ONE
-
-
Constructor Details
-
Finite
Creates an instance of aFinite
record class.- Parameters:
value
- the value for thevalue
record component
-
-
Method Details
-
lessThanOrEquals
- Specified by:
lessThanOrEquals
in interfaceRealBound
-
isFinite
public boolean isFinite() -
round
-
minus
-
add
-
sub
-
mul
-
div
-
exp
-
log
-
sqrt
-
pow
-
signum
public int signum() -
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. -
compareBound
- Specified by:
compareBound
in interfaceRealBound
-
asInt
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-