Modifier and Type | Field and Description |
---|---|
static int |
NULLVALUE |
Constructor and Description |
---|
IntIntBag() |
Modifier and Type | Method and Description |
---|---|
void |
add(int key,
int value)
Fuegt ein neues Schluessel-Wert-Paar hinzu.
|
void |
clear() |
int |
get(int key)
Findet einen Wert zu einem Schluessel.
|
int[] |
getAll(int key)
Findet alle Werte zu einem Schluessel.
|
IntArray |
getKeys() |
long |
getSize() |
IntArray |
getValues() |
IntIntBag |
readFromStream(InStream inStream)
Deserialisiert dieses Objekt aus einem Stream.
|
void |
sort() |
void |
writeToStream(OutStream outStream)
Serialisiert dieses Objekt in einen Stream.
|
public static final int NULLVALUE
public long getSize()
public void clear()
public IntArray getKeys()
public IntArray getValues()
public void add(int key, int value)
key
- Schluesselvalue
- Wertpublic int get(int key)
key
- Schluesselpublic int[] getAll(int key)
key
- Schluesselpublic void sort()
public void writeToStream(OutStream outStream)
Var
writeToStream
in interface Var<IntIntBag>
outStream
- OutStream