com.threerings.util
Class StreamableIntIntMap

java.lang.Object
  extended by com.samskivert.util.IntIntMap
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.samskivert.util.IntIntMap
IntIntMap.IntIntEntry, IntIntMap.KeyValueInterator, IntIntMap.Record
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 
Fields inherited from class com.samskivert.util.IntIntMap
_loadFactor, _modCount, DEFAULT_BUCKETS, DEFAULT_LOAD_FACTOR
 
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.
 
Method Summary
 void readObject(ObjectInputStream in)
          Reads our custom streamable fields.
 void writeObject(ObjectOutputStream out)
          Writes our custom streamable fields.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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