public class StreamableIntIntMap extends IntIntMap implements Streamable
IntIntMap extension that can be streamed. The keys and
values in the map must also be of streamable types.Streamable,
Serialized FormIntIntMap.IntIntEntryStreamable.ClosureDEFAULT_BUCKETS, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
StreamableIntIntMap()
Constructs an empty hash int map with the default number of hash
buckets.
|
StreamableIntIntMap(int buckets)
Constructs an empty int int map with the specified number of
buckets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readObject(ObjectInputStream in)
Reads our custom streamable fields.
|
void |
writeObject(ObjectOutputStream out)
Writes our custom streamable fields.
|
public StreamableIntIntMap(int buckets)
public StreamableIntIntMap()
public void writeObject(ObjectOutputStream out) throws IOException
IOExceptionpublic void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2015. All rights reserved.