Modul speiger.src.collections
Schnittstelle ByteStrategy
- Alle bekannten Implementierungsklassen:
ByteStrategy.NormalStrategy
public interface ByteStrategy
A Type Specific Strategy class that allows to give control hashcode generation and equals comparason for maps
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic classA Strategy that simulates the normal Hash Collection Behavior if you want to use Hash Control Collections to replace normal ones. -
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanequals(byte key, byte value) Type Specific Equals functioninthashCode(byte o) Type Specific HashCode functionstatic ByteStrategy
-
Felddetails
-
NORMAL
Normal Strategy
-
-
Methodendetails
-
normalStrategy
- Gibt zurück:
- a Normal Strategy that is behaving exactly like the normal Hash Strategy in the Hash Collections
-
hashCode
int hashCode(byte 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(byte key, byte value) Type Specific Equals function- Parameter:
key- the first element that should be compared withvalue- the second element that should be compared with (if object may be null)- Gibt zurück:
- if the elements match
-