Schnittstelle LongStrategy

Alle bekannten Implementierungsklassen:
LongStrategy.NormalStrategy

public interface LongStrategy
A Type Specific Strategy class that allows to give control hashcode generation and equals comparason for maps
  • Verschachtelte Klassen - Übersicht

    Verschachtelte Klassen
    Modifizierer und Typ
    Schnittstelle
    Beschreibung
    static class 
    A Strategy that simulates the normal Hash Collection Behavior if you want to use Hash Control Collections to replace normal ones.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final LongStrategy
    Normal Strategy
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    equals(long key, long value)
    Type Specific Equals function
    int
    hashCode(long o)
    Type Specific HashCode function
     
  • Felddetails

  • Methodendetails

    • normalStrategy

      static LongStrategy normalStrategy()
      Gibt zurück:
      a Normal Strategy that is behaving exactly like the normal Hash Strategy in the Hash Collections
    • hashCode

      int hashCode(long o)
      Type Specific HashCode function
      Parameter:
      o - the element that the hashcode is requested for (if object may be null)
      Gibt zurück:
      hashcode for the given entry
    • equals

      boolean equals(long key, long value)
      Type Specific Equals function
      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