gate.util
Class SimpleArraySet<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleArraySet
public SimpleArraySet()
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>