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 TypeMethodDescriptionvoid
Add the element to the multisetvoid
Add the element to the multisetlong
Count the elements in multisetentrySet()
Get all associations of the multiset.boolean
int
hashCode()
boolean
isEmpty()
Answers if Multiset is emptykeys()
Answers the collection of keyslong
size()
Answers the size of multiset.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
map
-
size
private long size
-
-
Constructor Details
-
DelegatingMultiset
-
-
Method Details
-
add
Description copied from interface:Multiset
Add the element to the multiset -
add
Description copied from interface:Multiset
Add the element to the multiset -
count
Description copied from interface:Multiset
Count the elements in multiset -
entrySet
Description copied from interface:Multiset
Get all associations of the multiset. Each entry provides a key and a count of that element. -
isEmpty
public boolean isEmpty()Description copied from interface:Multiset
Answers if Multiset is empty -
size
public long size()Description copied from interface:Multiset
Answers the size of multiset. Equivalent to number of elements, counting duplications. -
keys
Description copied from interface:Multiset
Answers the collection of keys -
equals
-
hashCode
public int hashCode()
-