- 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 java.util.Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
plus
- Specified by:
plus
in interfacePCollection<E>
- Parameters:
e
-- Returns:
- a collection which contains e and all of the elements of this
-
plusAll
- Specified by:
plusAll
in interfacePCollection<E>
- Parameters:
list
-- Returns:
- a collection which contains all of the elements of list and this
-
minus
- Specified by:
minus
in interfacePCollection<E>
- Parameters:
e
-- Returns:
- this with a single instance of e removed, if e is in this
-
minusAll
- Specified by:
minusAll
in interfacePCollection<E>
- Parameters:
list
-- Returns:
- this with all elements of list completely removed
-
intersect
- Returns:
- the equivalent of
this.minusAll(this.minusAll(list))
.
-