Top Description Methods
org.pcollections

public Interface PSet<E>

extends PCollection<E>, Set<E>
Known Direct Subinterfaces
org.pcollections.PSortedSet
Known Direct Implementers
org.pcollections.MapPSet, org.pcollections.OrderedPSet
Imports
java.util.Collection, .Set

An immutable, persistent set, containing no duplicate elements.
Author
harold

Method Summary

Modifier and TypeMethod and Description
public default PSet<E>

Returns:

the equivalent of this.minusAll(this.minusAll(list)).
intersect
(Collection<? extends E> list)

public PSet<E>
public PSet<E>
public PSet<E>
public PSet<E>
Inherited from java.util.Set:
addaddAllclearcontainscontainsAllcopyOfequalshashCodeisEmptyiteratorofofofofofofofofofofofofremoveremoveAllretainAllsizespliteratortoArraytoArray
Inherited from org.pcollections.PCollection:
addaddAllclearremoveremoveAllretainAll

Method Detail

intersectback to summary
public default PSet<E> intersect(Collection<? extends E> list)
Returns:PSet<E>

the equivalent of this.minusAll(this.minusAll(list)).

minusback to summary
public PSet<E> minus(Object e)

Redeclares org.pcollections.PCollection.minus.

Returns:PSet<E>

Doc from org.pcollections.PCollection.minus.

this with a single instance of e removed, if e is in this

minusAllback to summary
public PSet<E> minusAll(Collection<?> list)

Redeclares org.pcollections.PCollection.minusAll.

Returns:PSet<E>

Doc from org.pcollections.PCollection.minusAll.

this with all elements of list completely removed

plusback to summary
public PSet<E> plus(E e)

Redeclares org.pcollections.PCollection.plus.

Returns:PSet<E>

Doc from org.pcollections.PCollection.plus.

a collection which contains e and all of the elements of this

plusAllback to summary
public PSet<E> plusAll(Collection<? extends E> list)

Redeclares org.pcollections.PCollection.plusAll.

Returns:PSet<E>

Doc from org.pcollections.PCollection.plusAll.

a collection which contains all of the elements of list and this