Record Class IntInterval
java.lang.Object
java.lang.Record
tools.refinery.logic.term.intinterval.IntInterval
- All Implemented Interfaces:
Comparable<IntInterval>, AbstractValue<IntInterval, BigInteger>, ComparableAbstractValue<IntInterval, BigInteger>, Add<IntInterval>, Div<IntInterval>, Minus<IntInterval>, Mul<IntInterval>, Plus<IntInterval>, Sub<IntInterval>
public record IntInterval(@NotNull IntBound lowerBound, @NotNull IntBound upperBound)
extends Record
implements ComparableAbstractValue<IntInterval, BigInteger>, Comparable<IntInterval>, Plus<IntInterval>, Minus<IntInterval>, Add<IntInterval>, Sub<IntInterval>, Mul<IntInterval>, Div<IntInterval>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntIntervalstatic final IntIntervalstatic final IntIntervalstatic final IntIntervalstatic final IntIntervalstatic final IntInterval -
Constructor Summary
ConstructorsConstructorDescriptionIntInterval(@NotNull IntBound lowerBound, @NotNull IntBound upperBound) Creates an instance of aIntIntervalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadd(IntInterval other) checkEquals(IntInterval other) checkLess(IntInterval other) checkLessEq(IntInterval other) intcompareTo(@NotNull IntInterval other) div(IntInterval other) final booleanIndicates whether some other object is "equal to" this one.@Nullable BigInteger@Nullable BigIntegerfinal inthashCode()Returns a hash code value for this object.booleanbooleanisError()join(IntInterval other) @NotNull IntBoundReturns the value of thelowerBoundrecord component.max(IntInterval other) meet(IntInterval other) min(IntInterval other) minus()mul(IntInterval other) static IntIntervalof(int value) static IntIntervalof(int value1, int value2) static IntIntervalstatic IntIntervalof(BigInteger value) static IntIntervalof(BigInteger value1, BigInteger value2) static IntIntervalof(BigInteger value, IntBound bound) static IntIntervalstatic IntIntervalof(IntBound bound, BigInteger value) static IntIntervalplus()sub(IntInterval other) @NotNull StringtoString()Returns a string representation of this record class.@NotNull IntBoundReturns the value of theupperBoundrecord component.upToIncluding(IntInterval other) Methods inherited from interface AbstractValue
isOverlapping, isRefinementOf
-
Field Details
-
ZERO
-
ONE
-
UNKNOWN
-
ERROR
-
NEGATIVE_INFINITY
-
POSITIVE_INFINITY
-
-
Constructor Details
-
IntInterval
-
-
Method Details
-
getConcrete
- Specified by:
getConcretein interfaceAbstractValue<IntInterval, BigInteger>
-
isConcrete
public boolean isConcrete()- Specified by:
isConcretein interfaceAbstractValue<IntInterval, BigInteger>
-
getArbitrary
- Specified by:
getArbitraryin interfaceAbstractValue<IntInterval, BigInteger>
-
isError
public boolean isError()- Specified by:
isErrorin interfaceAbstractValue<IntInterval, BigInteger>
-
join
- Specified by:
joinin interfaceAbstractValue<IntInterval, BigInteger>
-
meet
- Specified by:
meetin interfaceAbstractValue<IntInterval, BigInteger>
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<IntInterval>
-
plus
- Specified by:
plusin interfacePlus<IntInterval>
-
minus
- Specified by:
minusin interfaceMinus<IntInterval>
-
add
- Specified by:
addin interfaceAdd<IntInterval>
-
sub
- Specified by:
subin interfaceSub<IntInterval>
-
mul
- Specified by:
mulin interfaceMul<IntInterval>
-
div
- Specified by:
divin interfaceDiv<IntInterval>
-
checkEquals
- Specified by:
checkEqualsin interfaceAbstractValue<IntInterval, BigInteger>
-
checkLess
- Specified by:
checkLessin interfaceComparableAbstractValue<IntInterval, BigInteger>
-
checkLessEq
- Specified by:
checkLessEqin interfaceComparableAbstractValue<IntInterval, BigInteger>
-
upToIncluding
- Specified by:
upToIncludingin interfaceComparableAbstractValue<IntInterval, BigInteger>
-
min
- Specified by:
minin interfaceComparableAbstractValue<IntInterval, BigInteger>
-
max
- Specified by:
maxin interfaceComparableAbstractValue<IntInterval, BigInteger>
-
abstractLowerBound
- Specified by:
abstractLowerBoundin interfaceComparableAbstractValue<IntInterval, BigInteger>
-
abstractUpperBound
- Specified by:
abstractUpperBoundin interfaceComparableAbstractValue<IntInterval, BigInteger>
-
hashCode
-
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
-