gate.util
Class SimpleArraySet<T>

java.lang.Object
  extended by gate.util.SimpleArraySet<T>
All Implemented Interfaces:
Serializable, Iterable<T>

public class SimpleArraySet<T>
extends Object
implements Serializable, Iterable<T>

A specific *partial* implementation of the Set interface used for high performance and memory reduction on small sets. Used in gate.fsm.State, for example

See Also:
Serialized Form

Constructor Summary
SimpleArraySet()
           
 
Method Summary
 boolean add(T tr)
           
 Collection asCollection()
           
 Iterator<T> iterator()
          iterator
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleArraySet

public SimpleArraySet()
Method Detail

size

public int size()

asCollection

public Collection asCollection()

add

public boolean add(T tr)

iterator

public Iterator<T> iterator()
iterator

Specified by:
iterator in interface Iterable<T>