|
||||||||
| 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). |
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)
allocInc - The increment value for new allocations.| Method Detail |
public void clear()
clear in class java.util.AbstractListpublic java.util.ListIterator listIterator(int index)
listIterator in class java.util.AbstractSequentialListindex - ???public int size()
size in class java.util.AbstractCollectionpublic boolean add(java.lang.Object obj)
add in class java.util.AbstractListobj - The element to be appended to this stack.
public java.lang.Object getFirst()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if the list is empty.public void addFirst(java.lang.Object obj)
obj - The object to add to the stack.
public java.lang.Object removeFirst()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if the list is empty.
public java.lang.Object getLast()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if the list is empty.public void addLast(java.lang.Object obj)
obj - The new element to add to the stack.
public java.lang.Object removeLast()
throws java.util.NoSuchElementException
java.util.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 | |||||||