- 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 TypeMethodDescriptionboolean
Deprecated.boolean
addAll
(Collection<? extends E> c) Deprecated.void
clear()
Deprecated.minusAll
(Collection<?> list) plusAll
(Collection<? extends E> list) boolean
Deprecated.boolean
removeAll
(Collection<?> c) Deprecated.boolean
retainAll
(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:
add
in interfaceCollection<E>
-
remove
Deprecated.- Specified by:
remove
in interfaceCollection<E>
-
addAll
Deprecated.- Specified by:
addAll
in interfaceCollection<E>
-
removeAll
Deprecated.- Specified by:
removeAll
in interfaceCollection<E>
-
retainAll
Deprecated.- Specified by:
retainAll
in interfaceCollection<E>
-
clear
Deprecated.- Specified by:
clear
in interfaceCollection<E>
-