com.threerings.util
Class StreamableArrayIntSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<Integer>
          extended by com.samskivert.util.AbstractIntSet
              extended by com.samskivert.util.ArrayIntSet
                  extended by com.threerings.util.StreamableArrayIntSet
All Implemented Interfaces:
Interable, IntSet, Streamable, Serializable, Cloneable, Iterable<Integer>, Collection<Integer>, Set<Integer>

public class StreamableArrayIntSet
extends ArrayIntSet
implements Streamable

A ArrayIntSet extension that can be streamed.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 
Fields inherited from class com.samskivert.util.ArrayIntSet
_size, _values, DEFAULT_CAPACITY
 
Constructor Summary
StreamableArrayIntSet()
           
StreamableArrayIntSet(int initialCapacity)
           
StreamableArrayIntSet(int[] values)
           
 
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.ArrayIntSet
add, binarySearch, clear, clone, contains, equals, get, hashCode, interator, isEmpty, remove, removeDuplicates, retainAll, size, toIntArray, toIntArray, toShortArray
 
Methods inherited from class com.samskivert.util.AbstractIntSet
add, add, addAll, contains, containsAll, iterator, remove, remove, removeAll, toString
 
Methods inherited from class java.util.AbstractCollection
toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
toArray, toArray
 

Constructor Detail

StreamableArrayIntSet

public StreamableArrayIntSet(int[] values)

StreamableArrayIntSet

public StreamableArrayIntSet(int initialCapacity)

StreamableArrayIntSet

public StreamableArrayIntSet()
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