public class LongIntBag extends java.lang.Object implements Var<LongIntBag>
Modifier and Type | Field and Description |
---|---|
static int |
NULLVALUE |
Constructor and Description |
---|
LongIntBag() |
Modifier and Type | Method and Description |
---|---|
void |
add(long key,
int value)
Fuegt ein neues Schluessel-Wert-Paar hinzu.
|
void |
clear() |
int |
get(long key)
Findet einen Wert zu einem Schluessel.
|
int[] |
getAll(long key)
Findet alle Werte zu einem Schluessel.
|
LongArray |
getKeys() |
long |
getSize() |
IntArray |
getValues() |
LongIntBag |
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 LongArray getKeys()
public IntArray getValues()
public void add(long key, int value)
key
- Schluesselvalue
- Wertpublic int get(long key)
key
- Schluesselpublic int[] getAll(long key)
key
- Schluesselpublic void sort()
public void writeToStream(OutStream outStream)
Var
writeToStream
in interface Var<LongIntBag>
outStream
- OutStream
public LongIntBag readFromStream(InStream inStream)
Var
readFromStream
in interface Var<LongIntBag>
inStream
- InStream
this
zurueckgeben.