Package org.openjdk.jmh.util
Class DelegatingMultiset<T>
java.lang.Object
org.openjdk.jmh.util.DelegatingMultiset<T>
- All Implemented Interfaces:
Serializable,Multiset<T>
- Direct Known Subclasses:
HashMultiset,TreeMultiset
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the element to the multisetvoidAdd the element to the multisetvoidclear()Remove all the elements.longCount the elements in multisetentrySet()Get all associations of the multiset.booleaninthashCode()booleanisEmpty()Answers if Multiset is emptykeys()Answers the collection of keyslongsize()Answers the size of multiset.
-
Field Details
-
map
-
-
Constructor Details
-
DelegatingMultiset
-
-
Method Details
-
add
Description copied from interface:MultisetAdd the element to the multiset -
add
Description copied from interface:MultisetAdd the element to the multiset -
count
Description copied from interface:MultisetCount the elements in multiset -
entrySet
Description copied from interface:MultisetGet all associations of the multiset. Each entry provides a key and a count of that element. -
isEmpty
public boolean isEmpty()Description copied from interface:MultisetAnswers if Multiset is empty -
size
public long size()Description copied from interface:MultisetAnswers the size of multiset. Equivalent to number of elements, counting duplications. -
keys
Description copied from interface:MultisetAnswers the collection of keys -
equals
-
hashCode
public int hashCode() -
clear
public void clear()Description copied from interface:MultisetRemove all the elements.
-