public class IntLongBag extends java.lang.Object implements Var<IntLongBag>
Modifier and Type | Field and Description |
---|---|
static long |
NULLVALUE |
Constructor and Description |
---|
IntLongBag() |
Modifier and Type | Method and Description |
---|---|
void |
add(int key,
long value)
Fuegt ein neues Schluessel-Wert-Paar hinzu.
|
void |
clear() |
long |
get(int key)
Findet einen Wert zu einem Schluessel.
|
long[] |
getAll(int key)
Findet alle Werte zu einem Schluessel.
|
long |
getAt(long idx)
Liefert einen Wert aus dem Cache,
allerdings nicht ueber den Schluessel, sondern
mittels Positionsangabe.
|
IntArray |
getKeys() |
long |
getSize() |
LongArray |
getValues() |
IntLongBag |
readFromStream(InStream inStream)
Deserialisiert dieses Objekt aus einem Stream.
|
void |
sort() |
void |
writeToStream(OutStream outStream)
Serialisiert dieses Objekt in einen Stream.
|
public static final long NULLVALUE
public long getSize()
public void clear()
public IntArray getKeys()
public LongArray getValues()
public void add(int key, long value)
key
- Schluesselvalue
- Wertpublic long get(int key)
key
- Schluesselpublic long[] getAll(int key)
key
- Schluesselpublic long getAt(long idx)
idx
- Index Position 0-wertig.public void sort()
public void writeToStream(OutStream outStream)
Var
writeToStream
in interface Var<IntLongBag>
outStream
- OutStream
public IntLongBag readFromStream(InStream inStream)
Var
readFromStream
in interface Var<IntLongBag>
inStream
- InStream
this
zurueckgeben.