uka.util
Class IntSet

java.lang.Object
  extended byuka.util.IntSet
All Implemented Interfaces:
java.io.Serializable

public class IntSet
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
(package private)  IntIDMap map
           
(package private)  IntQueue unusedIDs
           
 
Constructor Summary
IntSet()
           
 
Method Summary
 boolean add(int value)
           
 void clear()
           
 boolean contains(int value)
           
 int getSize()
           
 boolean isEmpty()
           
 IntIterator iterator()
           
 boolean remove(int value)
           
 EnlargingIntArray toArray(EnlargingIntArray a)
           
 int[] toArray(int[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

IntIDMap map

unusedIDs

IntQueue unusedIDs
Constructor Detail

IntSet

public IntSet()
Method Detail

add

public boolean add(int value)

isEmpty

public boolean isEmpty()

getSize

public int getSize()

contains

public boolean contains(int value)

remove

public boolean remove(int value)

clear

public void clear()

toArray

public EnlargingIntArray toArray(EnlargingIntArray a)

iterator

public IntIterator iterator()

toArray

public int[] toArray(int[] a)