Package net.glowstone.util.collection
Class SuperList<E>
java.lang.Object
net.glowstone.util.collection.SuperCollection<E>
net.glowstone.util.collection.SuperList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
List which delegates to other lists.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.glowstone.util.collection.SuperCollection
SuperCollection.AdditionMode, SuperCollection.ResultMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends E> objects) asClone()Returns a new collection with the same contents as the parents.booleanget(int index) protected Class<? extends Collection>Returns the class this SuperCollection implements.Returns the list of parents.intiterator()intlastIndexOf(Object object) listIterator(int index) remove(int index) intsize()subList(int fromIndex, int toIndex) Methods inherited from class net.glowstone.util.collection.SuperCollection
add, addAll, clear, contains, containsAll, getAdditionMode, getResultMode, hashCode, isEmpty, remove, removeAll, resultBoolean, retainAll, setAdditionMode, setResultMode, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
SuperList
public SuperList() -
SuperList
-
-
Method Details
-
getParents
Description copied from class:SuperCollectionReturns the list of parents.- Overrides:
getParentsin classSuperCollection<E>- Returns:
- Parent list.
-
asClone
Description copied from class:SuperCollectionReturns a new collection with the same contents as the parents.- Specified by:
asClonein classSuperCollection<E>- Returns:
- New mutable collection.
-
getCollectionClass
Description copied from class:SuperCollectionReturns the class this SuperCollection implements.- Specified by:
getCollectionClassin classSuperCollection<E>- Returns:
- Collection class.
-
add
-
addAll
-
equals
- Specified by:
equalsin interfaceCollection<E>- Specified by:
equalsin interfaceList<E>- Overrides:
equalsin classSuperCollection<E>
-
get
-
iterator
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
set
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Overrides:
sizein classSuperCollection<E>
-
subList
-