|
Generic Interpreter 1.3 Private API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack<E>
gi.Lexicon.Set<E>
E - the element type.static class Lexicon.Set<E>
This class implements a .Set
| Field Summary | |
|---|---|
private boolean |
excludeNull
The null exclusion indicator. |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
Lexicon.Set(int capacity)
Constructs a Set with an initial capacity. |
|
| Method Summary | |
|---|---|
boolean |
add(E element)
Adds an element to this Set. |
(package private) boolean |
add(int index,
Lexicon.Set<E> S)
Adds a Set of elements to this Set. |
(package private) boolean |
add(Lexicon.Set<E> S)
Adds a Set of elements to this Set. |
String |
toString()
|
| Methods inherited from class java.util.Stack |
|---|
empty, peek, pop, push, search |
| Methods inherited from class java.util.Vector |
|---|
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Field Detail |
|---|
private final boolean excludeNull
The null exclusion indicator. If true, add methods will not add null to this Set.
| Constructor Detail |
|---|
Lexicon.Set(int capacity)
Constructs a Set with an initial capacity.
capacity - the initial capacity. The magnitude of capacity is the initial capacity. The null exclusion indicator is initialized to true if capacity is negative.| Method Detail |
|---|
public boolean add(E element)
Adds an element to this Set. The element is not added if it occurs in this Set or it is null and the null exclusion indicator is true. The capacity is expanded if necessary.
add in interface Collection<E>add in interface List<E>add in class Vector<E>element - the element to add to this Set.
true if this Set is changed; false otherwise.
boolean add(int index,
Lexicon.Set<E> S)
Adds a Set of elements to this Set. An element is not added if it occurs in this Set or it is null and the null exclusion indicator is true. The capacity is expanded if necessary.
index - the index in S beyond which elements are added.S - the Set to add to this Set.
true if this Set is changed; false otherwise.boolean add(Lexicon.Set<E> S)
Adds a Set of elements to this Set. An element is not added if it occurs in this Set or it is null and the null exclusion indicator is true. The capacity is expanded if necessary.
S - the Set to add to this Set.
true if this Set is changed; false otherwise.public String toString()
toString in class Vector<E>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||