Record Class AnnotatedTypes.TypeArguments
java.lang.Object
java.lang.Record
org.checkerframework.framework.util.AnnotatedTypes.TypeArguments
- Record Components:
typeArguments- a mapping fromTypeVariableto its annotated type argumentuncheckedConversion- true if unchecked conversion was needed for inferenceinferenceCrash- true if type argument inference crashed
- Enclosing class:
AnnotatedTypes
public static record AnnotatedTypes.TypeArguments(Map<TypeVariable,AnnotatedTypeMirror> typeArguments, boolean uncheckedConversion, boolean inferenceCrash)
extends Record
Class representing type arguments for a method, constructor, or method reference expression.
-
Constructor Summary
ConstructorsConstructorDescriptionTypeArguments(Map<TypeVariable, AnnotatedTypeMirror> typeArguments, boolean uncheckedConversion, boolean inferenceCrash) Creates an instance of aTypeArgumentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinferenceCrashrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeArgumentsrecord component.booleanReturns the value of theuncheckedConversionrecord component.
-
Constructor Details
-
TypeArguments
public TypeArguments(Map<TypeVariable, AnnotatedTypeMirror> typeArguments, boolean uncheckedConversion, boolean inferenceCrash) Creates an instance of aTypeArgumentsrecord class.- Parameters:
typeArguments- the value for thetypeArgumentsrecord componentuncheckedConversion- the value for theuncheckedConversionrecord componentinferenceCrash- the value for theinferenceCrashrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
typeArguments
Returns the value of thetypeArgumentsrecord component.- Returns:
- the value of the
typeArgumentsrecord component
-
uncheckedConversion
public boolean uncheckedConversion()Returns the value of theuncheckedConversionrecord component.- Returns:
- the value of the
uncheckedConversionrecord component
-
inferenceCrash
public boolean inferenceCrash()Returns the value of theinferenceCrashrecord component.- Returns:
- the value of the
inferenceCrashrecord component
-