public class SuperList<E> extends SuperCollection<E> implements List<E>
SuperCollection.AdditionMode, SuperCollection.ResultMode
Constructor and Description |
---|
SuperList() |
SuperList(List<List<E>> parents) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E object) |
boolean |
addAll(int index,
Collection<? extends E> objects) |
List<E> |
asClone()
Returns a new collection with the same contents as the parents.
|
boolean |
equals(Object object) |
E |
get(int index) |
protected Class<? extends Collection> |
getCollectionClass()
Returns the class this SuperCollection implements.
|
List<List<E>> |
getParents()
Returns the list of parents.
|
int |
indexOf(Object object) |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object object) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
E |
set(int index,
E object) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, getAdditionMode, getResultMode, hashCode, isEmpty, remove, removeAll, resultBoolean, retainAll, setAdditionMode, setResultMode, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, hashCode, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public List<List<E>> getParents()
SuperCollection
getParents
in class SuperCollection<E>
public List<E> asClone()
SuperCollection
asClone
in class SuperCollection<E>
protected Class<? extends Collection> getCollectionClass()
SuperCollection
getCollectionClass
in class SuperCollection<E>
public boolean addAll(int index, Collection<? extends E> objects)
public boolean equals(Object object)
equals
in interface Collection<E>
equals
in interface List<E>
equals
in class SuperCollection<E>
public int lastIndexOf(Object object)
lastIndexOf
in interface List<E>
public ListIterator<E> listIterator()
listIterator
in interface List<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class SuperCollection<E>
Copyright © 2021. All rights reserved.