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