Class HashMultiset<E>
java.lang.Object
java.util.AbstractCollection<E>
net.sourceforge.plantuml.quantization.HashMultiset<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Multiset<E>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Constructor Details
-
HashMultiset
public HashMultiset() -
HashMultiset
-
-
Method Details
-
add
Description copied from interface:Multiset
Add n counts of an element. -
add
- Specified by:
add
in interfaceCollection<E>
- Overrides:
add
in classAbstractCollection<E>
-
remove
Description copied from interface:Multiset
Remove up to n counts of an element. -
remove
- Specified by:
remove
in interfaceCollection<E>
- Overrides:
remove
in classAbstractCollection<E>
-
iterator
- Specified by:
iterator
in interfaceCollection<E>
- Specified by:
iterator
in interfaceIterable<E>
- Specified by:
iterator
in classAbstractCollection<E>
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in classAbstractCollection<E>
-
count
-
getDistinctElements
- Specified by:
getDistinctElements
in interfaceMultiset<E>
-