Record Class RealInterval
java.lang.Object
java.lang.Record
tools.refinery.logic.term.realinterval.RealInterval
- All Implemented Interfaces:
Comparable<RealInterval>,AbstractValue<RealInterval,,BigDecimal> ComparableAbstractValue<RealInterval,,BigDecimal> Add<RealInterval>,Div<RealInterval>,Exp<RealInterval>,Log<RealInterval>,Minus<RealInterval>,Mul<RealInterval>,Plus<RealInterval>,Pow<RealInterval>,Sqrt<RealInterval>,Sub<RealInterval>
public record RealInterval(@NotNull RealBound lowerBound, @NotNull RealBound upperBound)
extends Record
implements ComparableAbstractValue<RealInterval,BigDecimal>, Comparable<RealInterval>, Plus<RealInterval>, Minus<RealInterval>, Add<RealInterval>, Sub<RealInterval>, Mul<RealInterval>, Div<RealInterval>, Exp<RealInterval>, Log<RealInterval>, Sqrt<RealInterval>, Pow<RealInterval>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RealIntervalstatic final RealIntervalstatic final RealIntervalstatic final RealIntervalstatic final RealIntervalstatic final RealIntervalstatic final RealInterval -
Constructor Summary
ConstructorsConstructorDescriptionRealInterval(@NotNull RealBound lowerBound, @NotNull RealBound upperBound) Creates an instance of aRealIntervalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadd(RealInterval other) asInt()checkEquals(RealInterval other) checkLess(RealInterval other) checkLessEq(RealInterval other) intcompareTo(@NotNull RealInterval other) div(RealInterval other) final booleanIndicates whether some other object is "equal to" this one.exp()static RealIntervalfromInt(IntInterval intInterval) @Nullable BigDecimal@Nullable BigDecimalfinal inthashCode()Returns a hash code value for this object.booleanbooleanisError()join(RealInterval other) log()@NotNull RealBoundReturns the value of thelowerBoundrecord component.max(RealInterval other) meet(RealInterval other) min(RealInterval other) minus()mul(RealInterval other) static RealIntervalof(BigDecimal value) static RealIntervalof(BigDecimal value1, BigDecimal value2) static RealIntervalof(BigDecimal value, RealBound bound) static RealIntervalof(RealBound bound, BigDecimal value) static RealIntervalplus()pow(RealInterval other) sqrt()sub(RealInterval other) @NotNull StringtoString()Returns a string representation of this record class.@NotNull RealBoundReturns the value of theupperBoundrecord component.upToIncluding(RealInterval other) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.logic.AbstractValue
isOverlapping, isRefinementOf
-
Field Details
-
ZERO
-
ONE
-
UNKNOWN
-
ERROR
-
POSITIVE_ERROR
-
NEGATIVE_INFINITY
-
POSITIVE_INFINITY
-
-
Constructor Details
-
RealInterval
Creates an instance of aRealIntervalrecord class.- Parameters:
lowerBound- the value for thelowerBoundrecord componentupperBound- the value for theupperBoundrecord component
-
-
Method Details
-
getConcrete
- Specified by:
getConcretein interfaceAbstractValue<RealInterval,BigDecimal>
-
isConcrete
public boolean isConcrete()- Specified by:
isConcretein interfaceAbstractValue<RealInterval,BigDecimal>
-
getArbitrary
- Specified by:
getArbitraryin interfaceAbstractValue<RealInterval,BigDecimal>
-
isError
public boolean isError()- Specified by:
isErrorin interfaceAbstractValue<RealInterval,BigDecimal>
-
join
- Specified by:
joinin interfaceAbstractValue<RealInterval,BigDecimal>
-
meet
- Specified by:
meetin interfaceAbstractValue<RealInterval,BigDecimal>
-
of
-
of
-
of
-
of
-
of
-
fromInt
-
asInt
-
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. -
compareTo
- Specified by:
compareToin interfaceComparable<RealInterval>
-
plus
- Specified by:
plusin interfacePlus<RealInterval>
-
minus
- Specified by:
minusin interfaceMinus<RealInterval>
-
add
- Specified by:
addin interfaceAdd<RealInterval>
-
sub
- Specified by:
subin interfaceSub<RealInterval>
-
mul
- Specified by:
mulin interfaceMul<RealInterval>
-
div
- Specified by:
divin interfaceDiv<RealInterval>
-
exp
- Specified by:
expin interfaceExp<RealInterval>
-
log
- Specified by:
login interfaceLog<RealInterval>
-
sqrt
- Specified by:
sqrtin interfaceSqrt<RealInterval>
-
pow
- Specified by:
powin interfacePow<RealInterval>
-
checkEquals
- Specified by:
checkEqualsin interfaceAbstractValue<RealInterval,BigDecimal>
-
checkLess
- Specified by:
checkLessin interfaceComparableAbstractValue<RealInterval,BigDecimal>
-
checkLessEq
- Specified by:
checkLessEqin interfaceComparableAbstractValue<RealInterval,BigDecimal>
-
upToIncluding
- Specified by:
upToIncludingin interfaceComparableAbstractValue<RealInterval,BigDecimal>
-
min
- Specified by:
minin interfaceComparableAbstractValue<RealInterval,BigDecimal>
-
max
- Specified by:
maxin interfaceComparableAbstractValue<RealInterval,BigDecimal>
-
abstractLowerBound
- Specified by:
abstractLowerBoundin interfaceComparableAbstractValue<RealInterval,BigDecimal>
-
abstractUpperBound
- Specified by:
abstractUpperBoundin interfaceComparableAbstractValue<RealInterval,BigDecimal>
-
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 withObjects::equals(Object,Object). -
lowerBound
Returns the value of thelowerBoundrecord component.- Returns:
- the value of the
lowerBoundrecord component
-
upperBound
Returns the value of theupperBoundrecord component.- Returns:
- the value of the
upperBoundrecord component
-