Class HashingStrategies.DefaultStrategy

java.lang.Object
org.eclipse.collections.impl.block.factory.HashingStrategies.DefaultStrategy
All Implemented Interfaces:
Serializable, HashingStrategy<Object>
Enclosing class:
HashingStrategies

private static class HashingStrategies.DefaultStrategy extends Object implements HashingStrategy<Object>
  • Field Details

  • Constructor Details

    • DefaultStrategy

      private DefaultStrategy()
  • Method Details

    • computeHashCode

      public int computeHashCode(Object object)
      Description copied from interface: HashingStrategy
      Computes the hashCode of the object as defined by the user.
      Specified by:
      computeHashCode in interface HashingStrategy<Object>
    • equals

      public boolean equals(Object object1, Object object2)
      Description copied from interface: HashingStrategy
      Checks two objects for equality. The equality check can use the objects own equals() method or a custom method defined by the user. It should be consistent with the computeHashCode() method.
      Specified by:
      equals in interface HashingStrategy<Object>