public class HashcodeAtmVisitor extends AnnotatedTypeScanner<java.lang.Integer,java.lang.Void>
This class should be synchronized with EqualityAtmComparer.
visitedNodes
Constructor and Description |
---|
HashcodeAtmVisitor() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
reduce(java.lang.Integer hashcode1,
java.lang.Integer hashcode2)
Used to combine the hashcodes of component types or a type and its component types
|
protected java.lang.Integer |
scan(AnnotatedTypeMirror type,
java.lang.Void v)
Generates the hashcode of type and combines it with the hashcode of its component types (if
any).
|
reset, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitExecutable, visitIntersection, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitUnion, visitWildcard
protected java.lang.Integer scan(AnnotatedTypeMirror type, java.lang.Void v)
scan
in class AnnotatedTypeScanner<java.lang.Integer,java.lang.Void>
type
- type to scanv
- the parameter to usetype
protected java.lang.Integer reduce(java.lang.Integer hashcode1, java.lang.Integer hashcode2)
reduce
in class AnnotatedTypeScanner<java.lang.Integer,java.lang.Void>
hashcode1
- a result of scanhashcode2
- a result of scanr1
and r2