Class HashMultiSet<T>
java.lang.Object
java.util.AbstractCollection<T>
org.processmining.framework.util.collection.AbstractMultiSet<T,Map<T,Integer>>
org.processmining.framework.util.collection.HashMultiSet<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,MultiSet<T>
,HTMLToString
- Direct Known Subclasses:
LinkedHashMultiSet
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.processmining.framework.util.HTMLToString
HTMLToString.HTMLCellRenderer
-
Field Summary
Fields inherited from class org.processmining.framework.util.collection.AbstractMultiSet
map, size
-
Constructor Summary
ConstructorDescriptionConstructs a new, empty multiset, such that all elements of the given collection are added as many times as they are returned by the iterator of that collection.HashMultiSet
(Collection<? extends T> collection) Constructs a new multiset, such that all elements of the given collection are added as many times as they are returned by the iterator of that collection.HashMultiSet
(T[] collection) Constructs a new multiset, such that all elements of the given collection are added as many times as they are in the given array. -
Method Summary
Methods inherited from class org.processmining.framework.util.collection.AbstractMultiSet
add, add, addAll, baseSet, clear, contains, containsAll, containsAtLeast, equals, hashCode, isEmpty, isLessOrEqual, iterator, occurrences, remove, removeAll, removeAllMultiSet, retainAll, retainAll, size, toHTMLString, toList, toString
Methods inherited from class java.util.AbstractCollection
toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray, toArray, toArray
-
Constructor Details
-
HashMultiSet
Constructs a new multiset, such that all elements of the given collection are added as many times as they are returned by the iterator of that collection.- Parameters:
collection
- Representing the objects that should be put in a multiset
-
HashMultiSet
Constructs a new multiset, such that all elements of the given collection are added as many times as they are in the given array.- Parameters:
collection
- Representing the objects that should be put in a multiset
-
HashMultiSet
public HashMultiSet()Constructs a new, empty multiset, such that all elements of the given collection are added as many times as they are returned by the iterator of that collection.
-