public class StructuralEqualityVisitHistory extends 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,
AnnotationMirror hierarchy,
boolean result)
Add result of comparing
type1 and type2 for structural equality for the given
hierarchy. |
@Nullable Boolean |
result(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2,
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, AnnotationMirror hierarchy, boolean result)
type1
and type2
for structural equality for the given
hierarchy.public @Nullable Boolean result(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2, AnnotationMirror hierarchy)
null
if no result exists for the types.