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 |
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.
|
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)
Deprecated.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
ObjectIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
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
|
addAll, containsAll, containsAny, containsAny, removeAll, retainAlladd, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringaddAll, addAll, addElements, addElements, addElements, extractElements, getElements, getElements, removeElements, replaceAll, sort, spliterator, unstableSortcontainsAll, containsAny, containsAny, removeAll, retainAllpublic 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 addedpublic 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 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 elements