Package eu.bandm.tools.util.multi
Class TreeMultiset<A>
java.lang.Object
eu.bandm.tools.util.multi.AbstractMultiset<A>
eu.bandm.tools.util.multi.TreeMultiset<A>
- All Implemented Interfaces:
Multiset<A>
,SortedMultiset<A>
,Serializable
,Iterable<A>
Implementation for sorted domains.
- See Also:
-
Field Summary
Fields inherited from class eu.bandm.tools.util.multi.AbstractMultiset
map
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComparator
<? super A> domain()
domain().equals(supportMap().keySet())The realizing peer.Methods inherited from class eu.bandm.tools.util.multi.AbstractMultiset
add, add, clear, contains, containsUnchecked, count, countAll, countAllUnchecked, countUnchecked, isEmpty, iterator, remove, removeAll, removeAllUnchecked, removeDomain, removeDomainUnchecked, removeUnchecked, retainAll, retainAllUnchecked, toString, xget
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface eu.bandm.tools.util.multi.Multiset
add, add, clear, contains, containsUnchecked, count, countAll, countAllUnchecked, countUnchecked, isEmpty, remove, removeAll, removeAllUnchecked, removeDomain, removeDomainUnchecked, removeUnchecked, retainAll, retainAllUnchecked
-
Constructor Details
-
TreeMultiset
public TreeMultiset() -
TreeMultiset
-
-
Method Details
-
supportMap
Description copied from interface:Multiset
The realizing peer. ATTENTION assume no Map.Entry.getValue()==0 is in map, but domain key is removed whenever this number reaches zero.- Specified by:
supportMap
in interfaceMultiset<A>
- Specified by:
supportMap
in interfaceSortedMultiset<A>
-
domain
Description copied from interface:Multiset
domain().equals(supportMap().keySet()) -
comparator
- Specified by:
comparator
in interfaceSortedMultiset<A>
-