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
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
| Modifier and Type |
Method |
Description |
void |
add(int index,
T element) |
|
boolean |
add(T o) |
|
boolean |
addAll(int index,
java.util.Collection<? extends T> c) |
|
boolean |
addAll(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, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
public ParentTrackingArrayList(java.lang.Object parent,
java.lang.Class<? extends java.util.List<?>> listClass)
-
public ParentTrackingArrayList(
java.lang.Object parent,
java.util.Collection<? extends T> c)
- Parameters:
c -
-
public ParentTrackingArrayList(java.lang.Object parent,
int initialCapacity)
- Parameters:
initialCapacity -
-
Method Details
-
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)
-
- 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)
-
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)
-
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)
-
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()
-
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)
-
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)
-
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.ArrayList<T extends Child>
- See Also:
AbstractCollection.removeAll(java.util.Collection)
-
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)
-
protected void removeRange(int fromIndex,
int toIndex)
- Overrides:
removeRange in class java.util.ArrayList<T extends Child>
- See Also:
ArrayList.removeRange(int, int)