Record Class AnnotatedTypeFactory.FnInterfaceAndType
java.lang.Object
java.lang.Record
org.checkerframework.framework.type.AnnotatedTypeFactory.FnInterfaceAndType
- Record Components:
functionalInterfaceType- the functional interface typefunctionType- the type of the single method declared infunctionalInterfaceType, adapted as if it were invoked using the functional interface as the receiver expression
- Enclosing class:
AnnotatedTypeFactory
public static record AnnotatedTypeFactory.FnInterfaceAndType(AnnotatedTypeMirror functionalInterfaceType, AnnotatedTypeMirror.AnnotatedExecutableType functionType)
extends Record
A functional interface type and its function type.
-
Constructor Summary
ConstructorsConstructorDescriptionFnInterfaceAndType(AnnotatedTypeMirror functionalInterfaceType, AnnotatedTypeMirror.AnnotatedExecutableType functionType) Creates an instance of aFnInterfaceAndTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionalInterfaceTyperecord component.Returns the value of thefunctionTyperecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FnInterfaceAndType
public FnInterfaceAndType(AnnotatedTypeMirror functionalInterfaceType, AnnotatedTypeMirror.AnnotatedExecutableType functionType) Creates an instance of aFnInterfaceAndTyperecord class.- Parameters:
functionalInterfaceType- the value for thefunctionalInterfaceTyperecord componentfunctionType- the value for thefunctionTyperecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
functionalInterfaceType
Returns the value of thefunctionalInterfaceTyperecord component.- Returns:
- the value of the
functionalInterfaceTyperecord component
-
functionType
Returns the value of thefunctionTyperecord component.- Returns:
- the value of the
functionTyperecord component
-