Class HashcodeAtmVisitor

All Implemented Interfaces:
AnnotatedTypeVisitor<Integer,Void>

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)
      Overrides:
      defaultAction in class SimpleAnnotatedTypeScanner<Integer,Void>
      Parameters:
      type - the type
      v - a visitor-specified parameter
      Returns:
      a visitor-specified result