com.threerings.util
Class StreamableHashIntMap<V>
java.lang.Object
java.util.AbstractMap<Integer,V>
com.samskivert.util.HashIntMap<V>
com.threerings.util.StreamableHashIntMap<V>
- Type Parameters:
V - the type of value stored in this map.
- All Implemented Interfaces:
- IntMap<V>, Streamable, Serializable, Cloneable, Map<Integer,V>
public class StreamableHashIntMap<V>
- extends HashIntMap<V>
- implements Streamable
A HashIntMap extension that can be streamed. The keys and values in the map must also
be of streamable types.
- See Also:
Streamable,
Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
|
Constructor Summary |
StreamableHashIntMap()
Constructs an empty hash int map with the default number of hash buckets. |
StreamableHashIntMap(int buckets,
float loadFactor)
Constructs an empty hash int map with the specified number of hash buckets. |
| Methods inherited from class com.samskivert.util.HashIntMap |
checkShrink, clear, clone, containsKey, containsKey, containsValue, createBuckets, elements, ensureCapacity, entrySet, get, get, getImpl, intEntrySet, intKeySet, keys, keySet, keyToIndex, put, put, putAll, remove, remove, removeImpl, resizeBuckets, size |
StreamableHashIntMap
public StreamableHashIntMap(int buckets,
float loadFactor)
- Constructs an empty hash int map with the specified number of hash buckets.
StreamableHashIntMap
public StreamableHashIntMap()
- 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