Top Description Methods
org.pcollections

public Interface PBag<E>

extends PCollection<E>
Known Direct Implementers
org.pcollections.MapPBag
Imports
java.util.Collection

An unordered collection allowing duplicate elements.
Author
harold

Method Summary

Modifier and TypeMethod and Description
public PBag<E>
public PBag<E>
public PBag<E>
public PBag<E>
Inherited from org.pcollections.PCollection:
addaddAllclearremoveremoveAllretainAll

Method Detail

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

Redeclares org.pcollections.PCollection.minus.

Returns:PBag<E>

Doc from org.pcollections.PCollection.minus.

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

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

Redeclares org.pcollections.PCollection.minusAll.

Returns:PBag<E>

Doc from org.pcollections.PCollection.minusAll.

this with all elements of list completely removed

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

Redeclares org.pcollections.PCollection.plus.

Returns:PBag<E>

Doc from org.pcollections.PCollection.plus.

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

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

Redeclares org.pcollections.PCollection.plusAll.

Returns:PBag<E>

Doc from org.pcollections.PCollection.plusAll.

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