Class Intern.LongHasher

java.lang.Object
org.plumelib.util.Intern.LongHasher
All Implemented Interfaces:
org.plumelib.util.Hasher
Enclosing class:
Intern

private static final class Intern.LongHasher extends Object implements org.plumelib.util.Hasher
Hasher object which hashes and compares Longs. This is the obvious implementation that uses intValue() for the hashCode.
See Also:
  • Hasher
  • Constructor Details

    • LongHasher

      public LongHasher()
      Create a new LongHasher.
  • 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