Class HashMultiSet<T>
- java.lang.Object
-
- java.util.AbstractCollection<T>
-
- org.processmining.framework.util.collection.AbstractMultiSet<T,java.util.Map<T,java.lang.Integer>>
-
- org.processmining.framework.util.collection.HashMultiSet<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,MultiSet<T>
,HTMLToString
- Direct Known Subclasses:
LinkedHashMultiSet
public class HashMultiSet<T> extends AbstractMultiSet<T,java.util.Map<T,java.lang.Integer>>
-
-
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
Constructors Constructor Description 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.HashMultiSet(java.util.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.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
HashMultiSet
public HashMultiSet(java.util.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.- Parameters:
collection
- Representing the objects that should be put in a multiset
-
HashMultiSet
public 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.- 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.
-
-