|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.xml.ElementState
ecologylab.xml.types.element.ArrayListState<T>
public class ArrayListState<T extends ElementState>
An ElementState XML tree node for collecting a set of nested elements, using an ArrayList (non-synchronized).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ecologylab.xml.ElementState |
|---|
ElementState.ClassToCollectionMap, ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_tag |
| Field Summary | |
|---|---|
protected java.util.ArrayList<T> |
set
|
| Fields inherited from class ecologylab.xml.ElementState |
|---|
CDATA, ESTIMATE_CHARS_PER_FIELD, FLOATING_PRECISION_OFF, MARSHALLING_PARAMS, NORMAL, UTF16, UTF16_LE, UTF8, XML_FILE_HEADER |
| Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes |
|---|
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN |
| Constructor Summary | |
|---|---|
ArrayListState()
|
|
| Method Summary | ||
|---|---|---|
void |
add(int i,
T obj)
|
|
boolean |
add(T elementState)
Add the element to this. |
|
boolean |
addAll(java.util.Collection<? extends T> c)
|
|
boolean |
addAll(int index,
java.util.Collection<? extends T> c)
|
|
void |
clear()
Remove all elements from our Collection. |
|
ArrayListState<T> |
clone()
|
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection<?> c)
|
|
T |
get(int i)
|
|
java.util.ArrayList<T> |
getArrayList()
Returns the underlying ArrayList implementation. |
|
protected java.util.Collection<? extends ElementState> |
getCollection(java.lang.Class thatClass)
Return the collection object associated with this |
|
int |
indexOf(java.lang.Object elem)
|
|
boolean |
isEmpty()
|
|
java.util.Iterator<T> |
iterator()
|
|
int |
lastIndexOf(java.lang.Object elem)
|
|
java.util.ListIterator<T> |
listIterator()
|
|
java.util.ListIterator<T> |
listIterator(int index)
|
|
void |
recycle()
Clear data structures and references to enable garbage collecting of resources associated with this. |
|
T |
remove(int i)
|
|
boolean |
remove(java.lang.Object o)
|
|
boolean |
removeAll(java.util.Collection<?> c)
|
|
boolean |
retainAll(java.util.Collection<?> c)
|
|
java.util.ArrayList<T> |
set()
Use lazy evaluation for creating the set, in order to make it possible this class lightweight enough to use in subclass situations where they may be no elements added to the set, where the ElementState is only being used for direct fields. |
|
T |
set(int index,
T element)
|
|
int |
size()
Get the number of elements in the set. |
|
java.util.List<T> |
subList(int fromIndex,
int toIndex)
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
void |
trimToSize()
|
|
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Field Detail |
|---|
protected java.util.ArrayList<T extends ElementState> set
| Constructor Detail |
|---|
public ArrayListState()
| Method Detail |
|---|
public java.util.ArrayList<T> set()
public java.util.ArrayList<T> getArrayList()
public boolean add(T elementState)
add in interface java.util.Collection<T extends ElementState>add in interface java.util.List<T extends ElementState>public T remove(int i)
remove in interface java.util.List<T extends ElementState>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T extends ElementState>iterator in interface java.util.Collection<T extends ElementState>iterator in interface java.util.List<T extends ElementState>
public void add(int i,
T obj)
add in interface java.util.List<T extends ElementState>public T get(int i)
get in interface java.util.List<T extends ElementState>i - the index of the element to get.
public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T extends ElementState>contains in interface java.util.List<T extends ElementState>protected java.util.Collection<? extends ElementState> getCollection(java.lang.Class thatClass)
getCollection in class ElementStatethatClass - The class of the ElementState superclass that could be stored in a Collection.
public void clear()
clear in interface java.util.Collection<T extends ElementState>clear in interface java.util.List<T extends ElementState>public int size()
size in interface java.util.Collection<T extends ElementState>size in interface java.util.List<T extends ElementState>public ArrayListState<T> clone()
clone in class java.lang.Objectpublic void trimToSize()
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T extends ElementState>toArray in interface java.util.List<T extends ElementState>public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T extends ElementState>addAll in interface java.util.List<T extends ElementState>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T extends ElementState>containsAll in interface java.util.List<T extends ElementState>public boolean isEmpty()
isEmpty in interface java.util.Collection<T extends ElementState>isEmpty in interface java.util.List<T extends ElementState>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T extends ElementState>remove in interface java.util.List<T extends ElementState>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T extends ElementState>removeAll in interface java.util.List<T extends ElementState>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T extends ElementState>retainAll in interface java.util.List<T extends ElementState>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<T extends ElementState>toArray in interface java.util.List<T extends ElementState>
public boolean addAll(int index,
java.util.Collection<? extends T> c)
addAll in interface java.util.List<T extends ElementState>public int indexOf(java.lang.Object elem)
indexOf in interface java.util.List<T extends ElementState>public int lastIndexOf(java.lang.Object elem)
lastIndexOf in interface java.util.List<T extends ElementState>public java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T extends ElementState>public java.util.ListIterator<T> listIterator(int index)
listIterator in interface java.util.List<T extends ElementState>
public T set(int index,
T element)
set in interface java.util.List<T extends ElementState>
public java.util.List<T> subList(int fromIndex,
int toIndex)
subList in interface java.util.List<T extends ElementState>public void recycle()
recycle in class ElementState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||