Class Intern.IntegerHasher

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

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

    • IntegerHasher

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