Record Class AnnotatedTypeFactory.BinaryArgTypes
java.lang.Object
java.lang.Record
org.checkerframework.framework.type.AnnotatedTypeFactory.BinaryArgTypes
- Record Components:
left- the type of the left argumentright- the type of the right argument
- Enclosing class:
AnnotatedTypeFactory
public static record AnnotatedTypeFactory.BinaryArgTypes(AnnotatedTypeMirror left, AnnotatedTypeMirror right)
extends Record
The types of the two arguments to a binary operation.
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryArgTypes(AnnotatedTypeMirror left, AnnotatedTypeMirror right) Creates an instance of aBinaryArgTypesrecord 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.left()Returns the value of theleftrecord component.right()Returns the value of therightrecord 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). -
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-