- Type Parameters:
E-
- All Superinterfaces:
Collection<E>,Iterable<E>
- All Known Subinterfaces:
PBag<E>,PQueue<E>,PSequence<E>,PSet<E>,PSortedSet<E>,PStack<E>,PVector<E>
- All Known Implementing Classes:
AmortizedPQueue,ConsPStack,MapPBag,MapPSet,OrderedPSet,TreePSet,TreePVector
An immutable, persistent collection of elements of type E.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanaddAll(Collection<? extends E> c) Deprecated.voidclear()Deprecated.minusAll(Collection<?> list) plusAll(Collection<? extends E> list) booleanDeprecated.booleanremoveAll(Collection<?> c) Deprecated.booleanretainAll(Collection<?> c) Deprecated.Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, size, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
plus
- Parameters:
e-- Returns:
- a collection which contains e and all of the elements of this
-
plusAll
- Parameters:
list-- Returns:
- a collection which contains all of the elements of list and this
-
minus
- Parameters:
e-- Returns:
- this with a single instance of e removed, if e is in this
-
minusAll
- Parameters:
list-- Returns:
- this with all elements of list completely removed
-
add
Deprecated.- Specified by:
addin interfaceCollection<E>
-
remove
Deprecated.- Specified by:
removein interfaceCollection<E>
-
addAll
Deprecated.- Specified by:
addAllin interfaceCollection<E>
-
removeAll
Deprecated.- Specified by:
removeAllin interfaceCollection<E>
-
retainAll
Deprecated.- Specified by:
retainAllin interfaceCollection<E>
-
clear
Deprecated.- Specified by:
clearin interfaceCollection<E>
-