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
-
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, 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
-
SuperSet
public SuperSet() -
SuperSet
-
-
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.
-