com.threerings.util
Class StreamableIntIntMap
java.lang.Object
com.samskivert.util.IntIntMap
com.threerings.util.StreamableIntIntMap
- All Implemented Interfaces:
- Streamable, Serializable
public class StreamableIntIntMap
- extends IntIntMap
- implements Streamable
A IntIntMap extension that can be streamed. The keys and
values in the map must also be of streamable types.
- See Also:
Streamable,
Serialized Form
|
Constructor Summary |
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. |
| Methods inherited from class com.samskivert.util.IntIntMap |
checkShrink, clear, contains, containsKey, ensureCapacity, entrySet, get, getKeys, getOrElse, getValues, increment, isEmpty, keys, keySet, locateRecord, put, remove, removeImpl, removeOrElse, resizeBuckets, size, toIntArray, toString, values |
StreamableIntIntMap
public StreamableIntIntMap(int buckets)
- Constructs an empty int int map with the specified number of
buckets.
StreamableIntIntMap
public StreamableIntIntMap()
- Constructs an empty hash int map with the default number of hash
buckets.
writeObject
public void writeObject(ObjectOutputStream out)
throws IOException
- Writes our custom streamable fields.
- Throws:
IOException
readObject
public void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads our custom streamable fields.
- Throws:
IOException
ClassNotFoundException