Class Intern.SubsequenceHasher<T extends @Interned Object>

java.lang.Object
org.plumelib.util.Intern.SubsequenceHasher<T>
Type Parameters:
T - the type of the elements of the sequences
All Implemented Interfaces:
org.plumelib.util.Hasher
Enclosing class:
Intern

private static final class Intern.SubsequenceHasher<T extends @Interned Object> extends Object implements org.plumelib.util.Hasher
Hasher object which hashes and compares sequences according to their contents.
See Also:
  • Hasher
  • Constructor Details

    • SubsequenceHasher

      public SubsequenceHasher()
      Create a new SubsequenceHasher.
  • Method Details

    • equals

      public boolean equals(Object a1, Object a2)
      Specified by:
      equals in interface org.plumelib.util.Hasher
    • hashCode

      public int hashCode(@UnknownSignedness Object o)
      Specified by:
      hashCode in interface org.plumelib.util.Hasher