|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.AbstractSequentialList | +--org.openorb.util.MergeStack
A weak set. This does not prevent it's members being reclaimed by the garbage collector.
Constructor Summary | |
MergeStack()
Constructs a new, empty list. |
|
MergeStack(int allocInc)
Constructs a new, empty list with the given allocation increment |
Method Summary | |
boolean |
add(java.lang.Object obj)
Appends the specified element to the end of this stack (optional operation). |
void |
addFirst(java.lang.Object obj)
Add a new element to the front of the stack. |
void |
addLast(java.lang.Object obj)
Add a new element to the end of the stack. |
void |
append(MergeStack next)
Append another MergeStack onto this one. |
void |
clear()
Removes all of the elements from this collection. |
java.lang.Object |
getFirst()
Get the first element in the list. |
java.lang.Object |
getLast()
Get the first element in the list. |
java.util.ListIterator |
listIterator(int index)
Returns a list iterator over the elements in this list (in proper sequence). |
static void |
main(java.lang.String[] args)
|
java.lang.Object |
removeFirst()
Remove and return the first element in the list. |
java.lang.Object |
removeLast()
Remove and return the last element in the list. |
int |
size()
Returns the number of elements in this collection. |
Methods inherited from class java.util.AbstractSequentialList |
add, addAll, get, iterator, remove, set |
Methods inherited from class java.util.AbstractList |
equals, hashCode, indexOf, lastIndexOf, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
public MergeStack()
public MergeStack(int allocInc)
Method Detail |
public void clear()
clear
in class java.util.AbstractList
public java.util.ListIterator listIterator(int index)
listIterator
in class java.util.AbstractSequentialList
public int size()
size
in class java.util.AbstractCollection
public boolean add(java.lang.Object obj)
add
in class java.util.AbstractList
o
- element to be appended to this list.public java.lang.Object getFirst()
java.util.NoSuchElementException
- if the list is empty.public void addFirst(java.lang.Object obj)
public java.lang.Object removeFirst()
java.util.NoSuchElementException
- if the list is empty.public java.lang.Object getLast()
java.util.NoSuchElementException
- if the list is empty.public void addLast(java.lang.Object obj)
public java.lang.Object removeLast()
java.util.NoSuchElementException
- if the list is empty.public void append(MergeStack next)
public static void main(java.lang.String[] args) throws java.lang.Throwable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |