Record Class ReductionResult.ReductionResultPair
java.lang.Object
java.lang.Record
org.checkerframework.framework.util.typeinference8.constraint.ReductionResult.ReductionResultPair
- Record Components:
constraintSet- a constraint setboundSet- a bound set
- All Implemented Interfaces:
ReductionResult
- Enclosing interface:
ReductionResult
public static record ReductionResult.ReductionResultPair(ConstraintSet constraintSet, BoundSet boundSet)
extends Record
implements ReductionResult
A reduction result that contains a bound set and a constraint set.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.checkerframework.framework.util.typeinference8.constraint.ReductionResult
ReductionResult.ReductionResultPair -
Field Summary
Fields inherited from interface org.checkerframework.framework.util.typeinference8.constraint.ReductionResult
UNCHECKED_CONVERSION -
Constructor Summary
ConstructorsConstructorDescriptionReductionResultPair(ConstraintSet constraintSet, BoundSet boundSet) Creates an instance of aReductionResultPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionboundSet()Returns the value of theboundSetrecord component.Returns the value of theconstraintSetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(ConstraintSet constraintSet, BoundSet boundSet) Creates a reduction result pair.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReductionResultPair
Creates an instance of aReductionResultPairrecord class.- Parameters:
constraintSet- the value for theconstraintSetrecord componentboundSet- the value for theboundSetrecord component
-
-
Method Details
-
of
public static ReductionResult.ReductionResultPair of(ConstraintSet constraintSet, BoundSet boundSet) Creates a reduction result pair.- Parameters:
constraintSet- a constraint setboundSet- a bound set- Returns:
- a reduction result pair
-
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. -
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). -
constraintSet
Returns the value of theconstraintSetrecord component.- Returns:
- the value of the
constraintSetrecord component
-
boundSet
Returns the value of theboundSetrecord component.- Returns:
- the value of the
boundSetrecord component
-