Klasse BooleanStrategy.NormalStrategy

java.lang.Object
speiger.src.collections.booleans.utils.BooleanStrategy.NormalStrategy
Alle implementierten Schnittstellen:
BooleanStrategy
Umschließende Schnittstelle:
BooleanStrategy

public static class BooleanStrategy.NormalStrategy extends Object implements BooleanStrategy
A Strategy that simulates the normal Hash Collection Behavior if you want to use Hash Control Collections to replace normal ones. Only real reason to do that is you have to use this and want to get rid of implementations.
  • Konstruktordetails

    • NormalStrategy

      public NormalStrategy()
  • Methodendetails

    • hashCode

      public int hashCode(boolean o)
      Beschreibung aus Schnittstelle kopiert: BooleanStrategy
      Type Specific HashCode function
      Angegeben von:
      hashCode in Schnittstelle BooleanStrategy
      Parameter:
      o - the element that the hashcode is requested for (if object may be null)
      Gibt zurück:
      hashcode for the given entry
    • equals

      public boolean equals(boolean key, boolean value)
      Beschreibung aus Schnittstelle kopiert: BooleanStrategy
      Type Specific Equals function
      Angegeben von:
      equals in Schnittstelle BooleanStrategy
      Parameter:
      key - the first element that should be compared with
      value - the second element that should be compared with (if object may be null)
      Gibt zurück:
      if the elements match