|
||||||||
| 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.
| Fields inherited from class java.util.AbstractList |
modCount |
| 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(Object obj)
Appends the specified element to the end of this stack (optional operation). |
void |
addFirst(Object obj)
Add a new element to the front of the stack. |
void |
addLast(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. |
Object |
getFirst()
Get the first element in the list. |
Object |
getLast()
Get the first element in the list. |
ListIterator |
listIterator(int index)
Returns a list iterator over the elements in this list (in proper sequence). |
Object |
removeFirst()
Remove and return the first element in the list. |
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, removeRange, 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 |
clone, finalize, 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)
allocInc - The increment value for new allocations.| Method Detail |
public void clear()
clear in class AbstractListpublic ListIterator listIterator(int index)
listIterator in class AbstractSequentialListindex - ???public int size()
size in class AbstractCollectionpublic boolean add(Object obj)
add in class AbstractListobj - The element to be appended to this stack.
public Object getFirst()
throws NoSuchElementException
NoSuchElementException - if the list is empty.public void addFirst(Object obj)
obj - The object to add to the stack.
public Object removeFirst()
throws NoSuchElementException
NoSuchElementException - if the list is empty.
public Object getLast()
throws NoSuchElementException
NoSuchElementException - if the list is empty.public void addLast(Object obj)
obj - The new element to add to the stack.
public Object removeLast()
throws NoSuchElementException
NoSuchElementException - if the list is empty.public void append(MergeStack next)
next - Another MergeStack instance to append.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||