Interface PSet<E>
- Type Parameters:
E-
- All Superinterfaces:
Collection<E>, Iterable<E>, PCollection<E>, Set<E>
- All Known Subinterfaces:
PSortedSet<E>
- All Known Implementing Classes:
MapPSet, OrderedPSet, TreePSet
An immutable, persistent set, containing no duplicate elements.
-
Method Summary
Methods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
plus
-
plusAll
- Specified by:
plusAllin interfacePCollection<E>- Parameters:
list-- Returns:
- a collection which contains all of the elements of list and this
-
minus
-
minusAll
- Specified by:
minusAllin interfacePCollection<E>- Parameters:
list-- Returns:
- this with all elements of list completely removed
-
intersect
- Returns:
- the equivalent of
this.minusAll(this.minusAll(list)).
-