E - The object type of this set.public class MultiSet<E> extends AbstractSet<E>
| Constructor and Description |
|---|
MultiSet(Collection<E>... c)
Create a new Set that consists as a coalesced set of the specified collections.
|
| Modifier and Type | Method and Description |
|---|---|
MultiSet<E> |
append(Collection<E> c)
Appends the specified collection to this set of collections.
|
Enumeration<E> |
enumerator()
Enumerates over all entries in all collections.
|
Iterator<E> |
iterator()
Iterates over all entries in all collections.
|
int |
size() |
equals, hashCode, removeAlladd, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, stream@SafeVarargs public MultiSet(Collection<E>... c)
c - Zero or more collections to add to this set.public MultiSet<E> append(Collection<E> c)
c - The collection to append to this set of collections.public Enumeration<E> enumerator()
public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>Copyright © 2018 Apache. All rights reserved.