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 TypeMethodDescriptionvoid
boolean
addAll
(int index, Collection<? extends E> objects) asClone()
Returns a new collection with the same contents as the parents.boolean
get
(int index) protected Class<? extends Collection>
Returns the class this SuperCollection implements.Returns the list of parents.int
iterator()
int
lastIndexOf
(Object object) listIterator
(int index) remove
(int index) int
size()
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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
SuperList
public SuperList() -
SuperList
-
-
Method Details
-
getParents
Description copied from class:SuperCollection
Returns the list of parents.- Overrides:
getParents
in classSuperCollection<E>
- Returns:
- Parent list.
-
asClone
Description copied from class:SuperCollection
Returns a new collection with the same contents as the parents.- Specified by:
asClone
in classSuperCollection<E>
- Returns:
- New mutable collection.
-
getCollectionClass
Description copied from class:SuperCollection
Returns the class this SuperCollection implements.- Specified by:
getCollectionClass
in classSuperCollection<E>
- Returns:
- Collection class.
-
add
-
addAll
-
equals
- Specified by:
equals
in interfaceCollection<E>
- Specified by:
equals
in interfaceList<E>
- Overrides:
equals
in classSuperCollection<E>
-
get
-
iterator
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
set
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Overrides:
size
in classSuperCollection<E>
-
subList
-