|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.util.ManagedLinkedList<T>
public class ManagedLinkedList<T> extends 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.
Constructor and Description |
---|
ManagedLinkedList(ReferenceBundle bundle)
|
Modifier and Type | Method and Description |
---|---|
void |
add(T value)
adds a value to the list |
boolean |
isEmpty()
returns if the list is empty |
Iterator<T> |
iterator()
returns an iterator, which allows the removal of elements. |
T[] |
toArray(T[] tArray)
Returns an array of non null elements from the source array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedLinkedList(ReferenceBundle bundle)
Method Detail |
---|
public void add(T value)
value
- the valuepublic Iterator<T> iterator()
public T[] toArray(T[] tArray)
tArray
- the source arraypublic boolean isEmpty()
|
Copyright © 2003-2010 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |