T - the type of elements maintained by this Collectionpublic abstract class AbstractObjectList<T> extends AbstractObjectCollection<T> implements ObjectList<T>
ObjectList interface.| Constructor and Description |
|---|
AbstractObjectList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e)
A Type-Specific implementation of add function that delegates to
List.add(int, Object) |
boolean |
addAll(java.util.Collection<? extends T> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(ObjectCollection<T> c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(ObjectList<T> c)
A Type-Specific implementation that iterates over the elements and adds them.
|
AbstractObjectList<T> |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o)
Compares if the list are the same.
|
int |
hashCode()
Generates the hashcode based on the values stored in the list.
|
int |
indexOf(java.lang.Object o)
The IndexOf implementation iterates over all elements and compares them to the search value.
|
ObjectIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(java.lang.Object o)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
ObjectListIterator<T> |
listIterator()
A Type-Specific Iterator of listIterator
|
ObjectListIterator<T> |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
ObjectList<T> |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
boolean |
swapRemove(T e)
A Highly Optimized remove function that removes the desired element.
|
containsAll, containsAll, containsAny, containsAny, removeAll, removeAll, retainAll, retainAllclear, contains, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringaddAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, extractElements, getElements, getElements, removeElements, replaceAll, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSortaddAll, addAll, addAll, containsAll, containsAny, containsAny, pour, removeAll, removeAll, retainAll, retainAll, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(T e)
List.add(int, Object)public boolean addAll(ObjectCollection<T> c)
addAll in interface ObjectCollection<T>addAll in class AbstractObjectCollection<T>c - the elements that wants to be addedpublic boolean addAll(ObjectList<T> c)
addAll in interface ObjectList<T>c - the elements that wants to be added@Deprecated public boolean addAll(java.util.Collection<? extends T> c)
This default implementation delegates to the corresponding type-specific function.
public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<T>o - the value that the index is searched for.public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<T>o - the value that the index is searched for.public boolean swapRemove(T e)
ObjectListswapRemove in interface ObjectList<T>e - the element that should be removedpublic boolean equals(java.lang.Object o)
public int hashCode()
public ObjectList<T> subList(int fromIndex, int toIndex)
ObjectListsubList in interface java.util.List<T>subList in interface ObjectList<T>List.subList(int, int)public ObjectIterator<T> iterator()
ObjectCollectioniterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface java.util.List<T>iterator in interface ObjectCollection<T>iterator in interface ObjectIterable<T>iterator in class AbstractObjectCollection<T>Collection.iterator()public ObjectListIterator<T> listIterator()
ObjectListlistIterator in interface java.util.List<T>listIterator in interface ObjectList<T>List.listIterator()public ObjectListIterator<T> listIterator(int index)
ObjectListlistIterator in interface java.util.List<T>listIterator in interface ObjectList<T>List.listIterator(int)public void size(int size)
ObjectListsize in interface ObjectList<T>size - the requested amount of elements/room for elementspublic AbstractObjectList<T> copy()
ObjectCollectioncopy in interface ObjectCollection<T>copy in interface ObjectList<T>copy in class AbstractObjectCollection<T>