public class StructuralEqualityVisitHistory
extends java.lang.Object
StructuralEqualityComparer for type arguments.
This is similar to SubtypeVisitHistory, but both true and false results are stored.
| Constructor and Description |
|---|
StructuralEqualityVisitHistory()
Creates an empty StructuralEqualityVisitHistory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2,
javax.lang.model.element.AnnotationMirror hierarchy,
boolean result)
Add result of comparing
type1 and type2 for structural equality for the given
hierarchy. |
@Nullable java.lang.Boolean |
result(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2,
javax.lang.model.element.AnnotationMirror hierarchy)
Return whether or not the two types are structurally equal for the given hierarchy or
null if no result exists for the types. |
public StructuralEqualityVisitHistory()
public void add(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2, javax.lang.model.element.AnnotationMirror hierarchy, boolean result)
type1 and type2 for structural equality for the given
hierarchy.public @Nullable java.lang.Boolean result(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2, javax.lang.model.element.AnnotationMirror hierarchy)
null if no result exists for the types.