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.Finitestatic final RealBound.Finitestatic final RealBound.Finite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(RealBound other, RoundingMode roundingMode) asInt(RoundingMode roundingMode) intcompareBound(RealBound other) div(RealBound other, RoundingMode roundingMode) booleanIndicates whether some other object is "equal to" this one.exp(RoundingMode roundingMode) inthashCode()Returns a hash code value for this object.booleanisFinite()booleanlessThanOrEquals(RealBound other) log(RoundingMode roundingMode) minus(RoundingMode roundingMode) mul(RealBound other, RoundingMode roundingMode) pow(RealBound other, RoundingMode roundingMode) round(RoundingMode roundingMode) intsignum()sqrt(RoundingMode roundingMode) sub(RealBound other, RoundingMode roundingMode) @NotNull StringtoString()Returns a string representation of this record class.value()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.realinterval.RealBound
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 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:
compareBoundin interfaceRealBound
-
asInt
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-