Record Class InferenceFactory.ParameterizedSupers
java.lang.Object
java.lang.Record
org.checkerframework.framework.util.typeinference8.types.InferenceFactory.ParameterizedSupers
- Record Components:
aAsSuper- the first type, viewed as the least upper bound of the two typesbAsSuper- the second type, viewed as the least upper bound of the two types
- Enclosing class:
InferenceFactory
public static record InferenceFactory.ParameterizedSupers(AbstractType aAsSuper, AbstractType bAsSuper)
extends Record
Two types viewed as their least upper bound.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterizedSupers(AbstractType aAsSuper, AbstractType bAsSuper) Creates an instance of aParameterizedSupersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaAsSuper()Returns the value of theaAsSuperrecord component.bAsSuper()Returns the value of thebAsSuperrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
aAsSuper
Returns the value of theaAsSuperrecord component.- Returns:
- the value of the
aAsSuperrecord component
-
bAsSuper
Returns the value of thebAsSuperrecord component.- Returns:
- the value of the
bAsSuperrecord component
-