Class HashcodeAtmVisitor

All Implemented Interfaces:

public class HashcodeAtmVisitor extends SimpleAnnotatedTypeScanner<Integer,Void>
Computes the hashcode of an AnnotatedTypeMirror using the underlying type and primary annotations and the hash code of component types of AnnotatedTypeMirror.

This class should be synchronized with EqualityAtmComparer.

See Also:
  • Constructor Details

  • Method Details

    • defaultAction

      protected Integer defaultAction(AnnotatedTypeMirror type, Void v)
      Generates hashcode for type using the underlying type and the primary annotation. This method does not descend into component types (this occurs in the scan method)
      defaultAction in class SimpleAnnotatedTypeScanner<Integer,Void>
      type - the type
      v - a visitor-specified parameter
      a visitor-specified result