Uses of Interface
org.javimmutable.collections.IMultiset
Package
Description
-
Uses of IMultiset in org.javimmutable.collections
Modifier and TypeMethodDescriptionRemoves every occurrence of value from the multiset.IMultiset.deleteAll()
Removes all occurrences of each value in other from the multiset.Removes all occurrences of each value in other from the multiset.IMultiset.deleteAllOccurrences
(Iterable<? extends T> other) Removes each occurrence in other from the multiset.IMultiset.deleteAllOccurrences
(Iterator<? extends T> other) Removes each occurrence in other from the multiset.IMultiset.deleteAllOccurrences
(IMultiset<? extends T> other) Removes each occurrence in other from the multiset.IMultiset.deleteOccurrence
(T value) Removes one occurrence of value from the multiset.IMultiset.deleteOccurrence
(T value, int count) Removes count number of occurrences of value from the multiset.static <T> IMultiset
<T> IMultisets.hashed()
Constructs an unsorted multiset.static <T> IMultiset
<T> Constructs an unsorted multiset containing the values from source.static <T> IMultiset
<T> Constructs an unsorted multiset containing the values from source.static <T> IMultiset
<T> IMultisets.hashed
(T... source) Constructs an unsorted multiset containing the values from source.Adds one occurrence of value to the multiset.Adds count number of occurrences of value to the multiset.Adds each occurrence in values to the multiset.Adds each occurrence in values to the multiset.Adds each occurrence in values to the multiset.IMultiset.intersection
(Iterable<? extends T> other) Creates a new multiset with the occurrences that are in both other and this.IMultiset.intersection
(Iterator<? extends T> other) Creates a new multiset with the occurrences that are in both other and this.IMultiset.intersection
(Set<? extends T> other) Creates a new multiset with the occurrences that are in both other and this.IMultiset.intersection
(IMultiset<? extends T> other) Creates a new multiset with the occurrences that are in both other and this.IMultiset.intersection
(ISet<? extends T> other) Creates a new multiset with the occurrences that are in both other and this.static <T> IMultiset
<T> IMultisets.ordered()
Constructs a multiset containing all of the values in source that sorts values based on the order they were originally added to the multiset.static <T> IMultiset
<T> Constructs a multiset containing all of the values in source that sorts values based on the order they were originally added to the multiset.static <T> IMultiset
<T> Constructs a multiset containing all of the values in source that sorts values based on the order they were originally added to the multiset.static <T> IMultiset
<T> IMultisets.ordered
(T... source) Constructs a multiset containing all of the values in source that sorts values based on the order they were originally added to the multiset.Manually sets the number of occurrences associated with the specified value.static <T extends Comparable<T>>
IMultiset<T> IMultisets.sorted()
Constructs an empty set that sorts values in their natural sort order (using ComparableComparator).static <T extends Comparable<T>>
IMultiset<T> Constructs a multiset containing all of the values in source that sorts values in their natural sort order (using ComparableComparator).static <T> IMultiset
<T> IMultisets.sorted
(Comparator<T> comparator) Constructs an empty multiset that sorts values using comparator.static <T> IMultiset
<T> IMultisets.sorted
(Comparator<T> comparator, Iterable<? extends T> source) Constructs a multiset containing all of the values in source that sorts values using comparator.static <T> IMultiset
<T> IMultisets.sorted
(Comparator<T> comparator, Iterator<? extends T> source) Constructs a multiset containing all of the values in source that sorts values using comparator.static <T> IMultiset
<T> IMultisets.sorted
(Comparator<T> comparator, T... source) Constructs a multiset containing all of the values in source that sorts values using comparator.static <T extends Comparable<T>>
IMultiset<T> Constructs a multiset containing all of the values in source that sorts values in their natural sort order (using ComparableComparator).static <T extends Comparable<T>>
IMultiset<T> IMultisets.sorted
(T... source) Constructs a multiset containing all of the values in source that sorts values in their natural sort order (using ComparableComparator).Combines all occurrences from other and the multiset.Combines all occurrences from other and the multiset.Combines all occurrences from other and the multiset.Modifier and TypeMethodDescriptionIMultiset.multisetCollector()
Returns a Collector that creates a multiset of the same type as this containing all of the collected values inserted over whatever starting values this already contained.static <T> java.util.stream.Collector
<T, ?, IMultiset<T>> ICollectors.toMultiset()
Collects into a multiset that sorts values based on the order they were originally added to the set.static <T> java.util.stream.Collector
<T, ?, IMultiset<T>> ICollectors.toOrderedMultiset()
Collects into a multiset that sorts values based on the order they were originally added to the set.static <T extends Comparable<T>>
java.util.stream.Collector<T, ?, IMultiset<T>> ICollectors.toSortedMultiset()
Collects values into a sortedIMultiset
using natural sort order of elements.static <T> java.util.stream.Collector
<T, ?, IMultiset<T>> ICollectors.toSortedMultiset
(Comparator<T> comparator) Collects values into a sortedIMultiset
using specified Comparator.Modifier and TypeMethodDescriptionboolean
IMultiset.containsAllOccurrences
(IMultiset<? extends T> other) Determines if the multiset contains every occurrence of all the values in other.IMultiset.deleteAllOccurrences
(IMultiset<? extends T> other) Removes each occurrence in other from the multiset.Adds each occurrence in values to the multiset.IMultiset.intersection
(IMultiset<? extends T> other) Creates a new multiset with the occurrences that are in both other and this.Combines all occurrences from other and the multiset. -
Uses of IMultiset in org.javimmutable.collections.common
Modifier and TypeMethodDescriptionImplemented by derived classes to create a new instance of the appropriate class.AbstractMultiset.deleteAllOccurrences
(Iterable<? extends T> other) AbstractMultiset.deleteAllOccurrences
(Iterator<? extends T> other) AbstractMultiset.deleteAllOccurrences
(IMultiset<? extends T> other) AbstractMultiset.deleteOccurrence
(T value) AbstractMultiset.deleteOccurrence
(T value, int subtractBy) AbstractMultiset.intersection
(Iterable<? extends T> other) AbstractMultiset.intersection
(Iterator<? extends T> other) AbstractMultiset.intersection
(Set<? extends T> other) AbstractMultiset.intersection
(IMultiset<? extends T> other) AbstractMultiset.intersection
(ISet<? extends T> other) Modifier and TypeMethodDescriptionboolean
AbstractMultiset.containsAllOccurrences
(IMultiset<? extends T> values) AbstractMultiset.deleteAllOccurrences
(IMultiset<? extends T> other) AbstractMultiset.intersection
(IMultiset<? extends T> other) -
Uses of IMultiset in org.javimmutable.collections.hash
-
Uses of IMultiset in org.javimmutable.collections.inorder
-
Uses of IMultiset in org.javimmutable.collections.serialization
-
Uses of IMultiset in org.javimmutable.collections.tree