org.jvnet.jaxb2_commons.ppp
Class ParentTrackingArrayList<T extends Child>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.jvnet.jaxb2_commons.ppp.ParentTrackingArrayList<T>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess
public class ParentTrackingArrayList<T extends Child>
- extends java.util.ArrayList<T>
- Author:
- gk5885
- See Also:
- Serialized Form
| Fields inherited from class java.util.AbstractList |
modCount |
|
Method Summary |
void |
add(int index,
T element)
|
boolean |
add(T o)
|
boolean |
addAll(java.util.Collection<? extends T> c)
|
boolean |
addAll(int index,
java.util.Collection<? extends T> c)
|
void |
clear()
|
T |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection<?> c)
|
protected void |
removeRange(int fromIndex,
int toIndex)
|
T |
set(int index,
T element)
|
| Methods inherited from class java.util.ArrayList |
clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, retainAll, subList |
ParentTrackingArrayList
public ParentTrackingArrayList(java.lang.Object parent,
java.lang.Class<? extends java.util.List<?>> listClass)
ParentTrackingArrayList
public ParentTrackingArrayList(java.lang.Object parent,
java.util.Collection<? extends T> c)
- Parameters:
c -
ParentTrackingArrayList
public ParentTrackingArrayList(java.lang.Object parent,
int initialCapacity)
- Parameters:
initialCapacity -
add
public void add(int index,
T element)
- Specified by:
add in interface java.util.List<T extends Child>- Overrides:
add in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.add(int, java.lang.Object)
add
public boolean add(T o)
- Specified by:
add in interface java.util.Collection<T extends Child>- Specified by:
add in interface java.util.List<T extends Child>- Overrides:
add in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.add(java.lang.Object)
addAll
public boolean addAll(java.util.Collection<? extends T> c)
- Specified by:
addAll in interface java.util.Collection<T extends Child>- Specified by:
addAll in interface java.util.List<T extends Child>- Overrides:
addAll in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.addAll(java.util.Collection)
addAll
public boolean addAll(int index,
java.util.Collection<? extends T> c)
- Specified by:
addAll in interface java.util.List<T extends Child>- Overrides:
addAll in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.addAll(int, java.util.Collection)
clear
public void clear()
- Specified by:
clear in interface java.util.Collection<T extends Child>- Specified by:
clear in interface java.util.List<T extends Child>- Overrides:
clear in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.clear()
remove
public T remove(int index)
- Specified by:
remove in interface java.util.List<T extends Child>- Overrides:
remove in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.remove(int)
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Collection<T extends Child>- Specified by:
remove in interface java.util.List<T extends Child>- Overrides:
remove in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.remove(java.lang.Object)
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll in interface java.util.Collection<T extends Child>- Specified by:
removeAll in interface java.util.List<T extends Child>- Overrides:
removeAll in class java.util.AbstractCollection<T extends Child>
- See Also:
AbstractCollection.removeAll(java.util.Collection)
set
public T set(int index,
T element)
- Specified by:
set in interface java.util.List<T extends Child>- Overrides:
set in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.set(int, java.lang.Object)
removeRange
protected void removeRange(int fromIndex,
int toIndex)
- Overrides:
removeRange in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.removeRange(int, int)
Copyright © 2005-2010 Sun Microsystems. All Rights Reserved.