|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.util.ManagedLinkedList
public class ManagedLinkedList extends java.lang.Object
This class provides a very simple linked list of memory managed elements. This class does not support concurrent modifications nor will it check for them. This class is also not thread safe.
Method Summary | |
---|---|
java.lang.Object
|
ManagedLinkedList(ReferenceBundle bundle)
|
void
|
add(java.lang.Object value)
adds a value to the list |
boolean
|
isEmpty()
returns if the list is empty |
java.util.Iterator
|
iterator()
returns an iterator, which allows the removal of elements. |
java.lang.Object[]
|
toArray(java.lang.Object[] tArray)
Returns an array of non null elements from the source array. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public java.lang.Object ManagedLinkedList(ReferenceBundle bundle)
public void add(java.lang.Object value)
value
- the value
public boolean isEmpty()
public java.util.Iterator iterator()
public java.lang.Object[] toArray(java.lang.Object[] tArray)
tArray
- the source array
Groovy Documentation