Class TreeMultiset<T>
java.lang.Object
org.javimmutable.collections.common.AbstractMultiset<T>
org.javimmutable.collections.tree.TreeMultiset<T>
- All Implemented Interfaces:
Serializable
,Iterable<T>
,ICollection<T>
,IMultiset<T>
,InvariantCheckable
,ISet<T>
,IStreamable<T>
,Mapped<T,
,T> SplitableIterable<T>
- See Also:
-
Field Summary
Fields inherited from class org.javimmutable.collections.common.AbstractMultiset
map, occurrences
-
Method Summary
Modifier and TypeMethodDescriptionprotected TreeMultiset
<T> Implemented by derived classes to create a new instance of the appropriate class.Implemented by derived classes to create a new empty mutable Map that operates in the same way as this multiset's underlying immutable Map.static <T extends Comparable<T>>
TreeMultiset<T> of()
static <T> TreeMultiset
<T> of
(Comparator<T> comparator) Methods inherited from class org.javimmutable.collections.common.AbstractMultiset
checkInvariants, contains, containsAll, containsAll, containsAllOccurrences, containsAllOccurrences, containsAllOccurrences, containsAny, containsAny, containsAtLeast, count, delete, deleteAll, deleteAll, deleteAllOccurrences, deleteAllOccurrences, deleteAllOccurrences, deleteOccurrence, deleteOccurrence, entries, equals, getSet, getSpliteratorCharacteristics, hashCode, insert, insert, insertAll, insertAll, insertAll, intersection, intersection, intersection, intersection, intersection, isEmpty, iterator, occurrenceCount, occurrences, setCount, size, toString, union, union, union
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.javimmutable.collections.ICollection
isNonEmpty
Methods inherited from interface org.javimmutable.collections.IMultiset
multisetCollector
Methods inherited from interface org.javimmutable.collections.ISet
find, get, getValueOr, reject, select, setCollector
Methods inherited from interface org.javimmutable.collections.IStreamable
parallelStream, spliterator, stream
Methods inherited from interface org.javimmutable.collections.SplitableIterable
forEachThrows, indexedForEach, indexedForEachThrows, reduce, reduceThrows
-
Method Details
-
deleteAll
-
getComparator
-
of
-
of
-
create
Description copied from class:AbstractMultiset
Implemented by derived classes to create a new instance of the appropriate class.- Specified by:
create
in classAbstractMultiset<T>
- Parameters:
map
- base map for new multisetoccurrences
- total occurrences in map- Returns:
- new multiset built from map
-
emptyMutableMap
Description copied from class:AbstractMultiset
Implemented by derived classes to create a new empty mutable Map that operates in the same way as this multiset's underlying immutable Map.- Specified by:
emptyMutableMap
in classAbstractMultiset<T>
- Returns:
- new empty Counter
-