Package org.apache.juneau.internal
Class MultiSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.apache.juneau.internal.MultiSet<E>
- Type Parameters:
- E- The object type of this set.
- All Implemented Interfaces:
- Iterable<E>,- Collection<E>,- Set<E>
Encapsulates multiple collections so they can be iterated over as if they were all part of the same collection.
 
See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMultiSet(Collection<E>... c) Create a new Set that consists as a coalesced set of the specified collections.
- 
Method SummaryMethods inherited from class java.util.AbstractSetequals, hashCode, removeAllMethods inherited from class java.util.AbstractCollectionadd, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
- 
Constructor Details- 
MultiSetCreate a new Set that consists as a coalesced set of the specified collections.- Parameters:
- c- Zero or more collections to add to this set.
 
 
- 
- 
Method Details- 
iteratorIterates over all entries in all collections.
- 
enumeratorEnumerates over all entries in all collections.- Returns:
- An enumeration wrapper around this set.
 
- 
size- Specified by:
- sizein interface- Collection<E>
- Specified by:
- sizein interface- Set<E>
- Specified by:
- sizein class- AbstractCollection<E>
 
 
-