Klasse IntArrayDictionary
java.lang.Object
org.deidentifier.arx.framework.check.distribution.IntArrayDictionary
A hash groupify operator.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclear()Clears the dictionary.voiddecrementRefCount(int index) Removes a element from the dictionary.int[]get(int index) Returns the according entry.intprobe(int[] key) Probes the dictionary and either inserts a new entry index or returns the corresponding entry index.
-
Konstruktordetails
-
IntArrayDictionary
public IntArrayDictionary(int capacity) Constructs a new dictionary.- Parameter:
capacity- the capacity
-
-
Methodendetails
-
clear
public void clear()Clears the dictionary. -
decrementRefCount
public void decrementRefCount(int index) Removes a element from the dictionary.- Parameter:
index-
-
get
public int[] get(int index) Returns the according entry.- Parameter:
index-- Gibt zurück:
-
probe
public int probe(int[] key) Probes the dictionary and either inserts a new entry index or returns the corresponding entry index.- Parameter:
key- the key- Gibt zurück:
-