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) |
Type Params | Return Type | Name 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. |
adds a value to the list
value
- the valuereturns if the list is empty
returns an iterator, which allows the removal of elements. The next() method of the iterator may return null values. This is especially the case if the value was removed.
Returns an array of non null elements from the source array.
tArray
- the source arrayCopyright © 2003-2020 The Apache Software Foundation. All rights reserved.