Record Class WholeProgramInferenceJavaParserStorage.InferredDeclared
java.lang.Object
java.lang.Record
org.checkerframework.common.wholeprograminference.WholeProgramInferenceJavaParserStorage.InferredDeclared
- Record Components:
inferred- the inferred typedeclared- the declared type
- Enclosing class:
WholeProgramInferenceJavaParserStorage
public static record WholeProgramInferenceJavaParserStorage.InferredDeclared(AnnotatedTypeMirror inferred, AnnotatedTypeMirror declared)
extends Record
A pair of two annotated types: an inferred type and a declared type.
-
Constructor Summary
ConstructorsConstructorDescriptionInferredDeclared(AnnotatedTypeMirror inferred, AnnotatedTypeMirror declared) Creates an instance of aInferredDeclaredrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeclared()Returns the value of thedeclaredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inferred()Returns the value of theinferredrecord component.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). -
inferred
Returns the value of theinferredrecord component.- Returns:
- the value of the
inferredrecord component
-
declared
Returns the value of thedeclaredrecord component.- Returns:
- the value of the
declaredrecord component
-