Package net.glowstone.util.collection
Class SuperSet<E>
java.lang.Object
net.glowstone.util.collection.SuperCollection<E>
net.glowstone.util.collection.SuperSet<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
Set which delegates to other sets.
-
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 TypeMethodDescriptionasClone()Returns a new collection with the same contents as the parents.protected Class<? extends Collection>Returns the class this SuperCollection implements.Returns the list of parents.Methods inherited from class net.glowstone.util.collection.SuperCollection
add, addAll, clear, contains, containsAll, equals, getAdditionMode, getResultMode, hashCode, isEmpty, iterator, remove, removeAll, resultBoolean, retainAll, setAdditionMode, setResultMode, size, 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
-
SuperSet
public SuperSet() -
SuperSet
-
-
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.
-