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 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()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 interface 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
-
round
-
minus
-
add
-
sub
-
mul
-
div
-
exp
-
log
-
sqrt
-
pow
-
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
-
toString
-
compareBound
- Specified by:
compareBoundin interfaceRealBound
-
asInt
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-