If the backing map is thread-safe, then this implementation is thread-safe (assuming Java's AbstractCollection is thread-safe), although its iterators may not be.
| Modifier and Type | Field and Description |
|---|---|
| private final PMap | |
| private static final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(final Object
element whose presence in this collection is to be tested e)Overrides java. Implements java. Returns |
| private int | |
| public static <E> MapPBag | |
| public boolean | equals(Object
object to be compared for equality with this collection that)Overrides java. Implements java. Compares the specified object with this collection for equality. |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this collection. |
| public Iterator | iterator()
Implements abstract java. Implements java. Returns an iterator over the elements in this collection. |
| public MapPBag | |
| public MapPBag | |
| public MapPBag | |
| public MapPBag | |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this collection. |
| private static int |
| map | back to summary |
|---|---|
| private final PMap<E, Integer> map | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| size | back to summary |
|---|---|
| private final int size | |
| MapPBag | back to summary |
|---|---|
| private MapPBag(final PMap<E, Integer> map, final int size) | |
| contains | back to summary |
|---|---|
| public boolean contains(final Object e) Overrides java. Implements java. Doc from java. Returns | |
| count | back to summary |
|---|---|
private int count(final Object o)
| |
| empty | back to summary |
|---|---|
public static <E> MapPBag
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Implements java. Doc from java. Compares the specified object with this collection for equality.
While the
The general contract for the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this collection. While the
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee). | |
| minus | back to summary |
|---|---|
| public MapPBag Implements org.
| |
| minusAll | back to summary |
|---|---|
| public MapPBag Implements org.
| |
| plus | back to summary |
|---|---|
| public MapPBag Implements org.
| |
| plusAll | back to summary |
|---|---|
| public MapPBag Implements org.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |
| size | back to summary |
|---|---|
| private static int size(final PMap<?, Integer> map) | |