Uses of Interface
com.google.common.collect.Multiset
-
Packages that use Multiset Package Description com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.collect.testing.google com.google.common.graph An API for representing graph (node and edge) data.com.google.common.testing This package contains testing utilities.com.google.common.util.concurrent Concurrency utilities. -
-
Uses of Multiset in com.google.common.collect
Subinterfaces of Multiset in com.google.common.collect Modifier and Type Interface Description interface
SortedMultiset<E>
AMultiset
which maintains the ordering of its elements, according to either their natural order or an explicitComparator
.(package private) interface
SortedMultisetBridge<E>
Superinterface ofSortedMultiset
to introduce a bridge method forelementSet()
, to ensure binary compatibility with older Guava versions that specifiedelementSet()
to returnSortedSet
.Classes in com.google.common.collect that implement Multiset Modifier and Type Class Description (package private) class
AbstractMapBasedMultiset<E>
Basic implementation ofMultiset<E>
backed by an instance ofMap<E, Count>
.(package private) class
AbstractMultiset<E>
This class provides a skeletal implementation of theMultiset
interface.(package private) class
AbstractSortedMultiset<E>
This class provides a skeletal implementation of theSortedMultiset
interface.class
ConcurrentHashMultiset<E>
A multiset that supports concurrent modifications and that provides atomic versions of mostMultiset
operations (exceptions where noted).(package private) class
DescendingImmutableSortedMultiset<E>
A descending wrapper around anImmutableSortedMultiset
(package private) class
DescendingMultiset<E>
A skeleton implementation of a descending multiset.class
EnumMultiset<E extends java.lang.Enum<E>>
Multiset implementation backed by anEnumMap
.(package private) class
FilteredEntryMultimap.Keys
class
ForwardingMultiset<E>
A multiset which forwards all its method calls to another multiset.class
ForwardingSortedMultiset<E>
A sorted multiset which forwards all its method calls to another sorted multiset.protected class
ForwardingSortedMultiset.StandardDescendingMultiset
A skeleton implementation of a descending multiset view.class
HashMultiset<E>
Multiset implementation backed by aHashMap
.(package private) class
ImmutableMultimap.Keys
class
ImmutableMultiset<E>
AMultiset
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableSortedMultiset<E>
ASortedMultiset
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) class
ImmutableSortedMultisetFauxverideShim<E>
"Overrides" theImmutableMultiset
static methods that lackImmutableSortedMultiset
equivalents with deprecated, exception-throwing versions.class
LinkedHashMultiset<E>
AMultiset
implementation with predictable iteration order.(package private) static class
Multimaps.Keys<K,V>
private static class
Multisets.FilteredMultiset<E>
(package private) static class
Multisets.UnmodifiableMultiset<E>
(package private) class
RegularImmutableMultiset<E>
Implementation ofImmutableMultiset
with zero or more elements.(package private) class
RegularImmutableSortedMultiset<E>
An immutable sorted multiset with one or more distinct elements.private static class
Synchronized.SynchronizedMultiset<E>
class
TreeMultiset<E>
A multiset which maintains the ordering of its elements, according to either their natural order or an explicitComparator
.(package private) class
UnmodifiableSortedMultiset<E>
Implementation ofMultisets.unmodifiableSortedMultiset(SortedMultiset)
, split out into its own file so it can be GWT emulated (to deal with the differing elementSet() types in GWT and non-GWT).Fields in com.google.common.collect declared as Multiset Modifier and Type Field Description (package private) Multiset<E>
ImmutableMultiset.Builder. contents
(package private) Multiset<? extends E>
Multisets.UnmodifiableMultiset. delegate
private Multiset<K>
AbstractMultimap. keys
(package private) Multiset<K>
Multimaps.UnmodifiableMultimap. keys
(package private) Multiset<K>
Synchronized.SynchronizedMultimap. keys
private Multiset<E>
Multisets.MultisetIteratorImpl. multiset
(package private) Multiset<E>
Multisets.FilteredMultiset. unfiltered
Methods in com.google.common.collect that return Multiset Modifier and Type Method Description (package private) static <T> Multiset<T>
Multisets. cast(java.lang.Iterable<T> iterable)
Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557(package private) Multiset<K>
AbstractMultimap. createKeys()
(package private) Multiset<K>
FilteredEntryMultimap. createKeys()
(package private) Multiset<K>
FilteredKeyMultimap. createKeys()
protected Multiset<E>
DescendingMultiset. delegate()
protected abstract Multiset<E>
ForwardingMultiset. delegate()
protected Multiset<E>
Multisets.UnmodifiableMultiset. delegate()
(package private) Multiset<E>
Synchronized.SynchronizedMultiset. delegate()
static <E> Multiset<E>
Multisets. difference(Multiset<E> multiset1, Multiset<?> multiset2)
Returns an unmodifiable view of the difference of two multisets.static <E> Multiset<E>
Multisets. filter(Multiset<E> unfiltered, Predicate<? super E> predicate)
Returns a view of the elements ofunfiltered
that satisfy a predicate.static <E> Multiset<E>
Multisets. intersection(Multiset<E> multiset1, Multiset<?> multiset2)
Returns an unmodifiable view of the intersection of two multisets.Multiset<K>
AbstractMultimap. keys()
Multiset<K>
ForwardingMultimap. keys()
Multiset<K>
Multimap. keys()
Returns a view collection containing the key from each key-value pair in this multimap, without collapsing duplicates.Multiset<K>
Multimaps.TransformedEntriesMultimap. keys()
Multiset<K>
Multimaps.UnmodifiableMultimap. keys()
Multiset<K>
Synchronized.SynchronizedMultimap. keys()
(package private) Multiset<E>
AbstractMultiset.ElementSet. multiset()
(package private) Multiset<E>
AbstractMultiset.EntrySet. multiset()
(package private) Multiset<E>
ForwardingMultiset.StandardElementSet. multiset()
(package private) Multiset<K>
Multimaps.Keys.KeysEntrySet. multiset()
(package private) abstract Multiset<E>
Multisets.ElementSet. multiset()
(package private) abstract Multiset<E>
Multisets.EntrySet. multiset()
(package private) static <E> Multiset<E>
Synchronized. multiset(Multiset<E> multiset, java.lang.Object mutex)
static <E> Multiset<E>
Multisets. sum(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)
Returns an unmodifiable view of the sum of two multisets.static <E> Multiset<E>
Multisets. union(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)
Returns an unmodifiable view of the union of two multisets.static <E> Multiset<E>
Multisets. unmodifiableMultiset(ImmutableMultiset<E> multiset)
Deprecated.no need to use thisstatic <E> Multiset<E>
Multisets. unmodifiableMultiset(Multiset<? extends E> multiset)
Returns an unmodifiable view of the specified multiset.Methods in com.google.common.collect with parameters of type Multiset Modifier and Type Method Description (package private) static <E> boolean
Multisets. addAllImpl(Multiset<E> self, java.util.Collection<? extends E> elements)
An implementation ofCollection.addAll(java.util.Collection<? extends E>)
.static boolean
Multisets. containsOccurrences(Multiset<?> superMultiset, Multiset<?> subMultiset)
Returnstrue
ifsubMultiset.count(o) <= superMultiset.count(o)
for allo
.static <E> ImmutableMultiset<E>
Multisets. copyHighestCountFirst(Multiset<E> multiset)
Returns a copy ofmultiset
as anImmutableMultiset
whose iteration order is highest count first, with ties broken by the iteration order of the original multiset.static <E> Multiset<E>
Multisets. difference(Multiset<E> multiset1, Multiset<?> multiset2)
Returns an unmodifiable view of the difference of two multisets.(package private) static boolean
Multisets. equalsImpl(Multiset<?> multiset, java.lang.Object object)
An implementation ofequals(java.lang.Object)
.static <E> Multiset<E>
Multisets. filter(Multiset<E> unfiltered, Predicate<? super E> predicate)
Returns a view of the elements ofunfiltered
that satisfy a predicate.static <E> Multiset<E>
Multisets. intersection(Multiset<E> multiset1, Multiset<?> multiset2)
Returns an unmodifiable view of the intersection of two multisets.(package private) static <E> java.util.Iterator<E>
Multisets. iteratorImpl(Multiset<E> multiset)
An implementation ofiterator()
.(package private) static <E> Multiset<E>
Synchronized. multiset(Multiset<E> multiset, java.lang.Object mutex)
(package private) static <E> void
Serialization. populateMultiset(Multiset<E> multiset, java.io.ObjectInputStream stream)
Populates a multiset by reading an input stream, as part of deserialization.(package private) static <E> void
Serialization. populateMultiset(Multiset<E> multiset, java.io.ObjectInputStream stream, int distinctElements)
Populates a multiset by reading an input stream, as part of deserialization.(package private) static boolean
Multisets. removeAllImpl(Multiset<?> self, java.util.Collection<?> elementsToRemove)
An implementation ofremoveAll(java.util.Collection<?>)
.static boolean
Multisets. removeOccurrences(Multiset<?> multisetToModify, Multiset<?> occurrencesToRemove)
For each occurrence of an elemente
inoccurrencesToRemove
, removes one occurrence ofe
inmultisetToModify
.static boolean
Multisets. removeOccurrences(Multiset<?> multisetToModify, java.lang.Iterable<?> occurrencesToRemove)
For each occurrence of an elemente
inoccurrencesToRemove
, removes one occurrence ofe
inmultisetToModify
.(package private) static boolean
Multisets. retainAllImpl(Multiset<?> self, java.util.Collection<?> elementsToRetain)
An implementation ofretainAll(java.util.Collection<?>)
.static boolean
Multisets. retainOccurrences(Multiset<?> multisetToModify, Multiset<?> multisetToRetain)
ModifiesmultisetToModify
so that its count for an elemente
is at mostmultisetToRetain.count(e)
.private static <E> boolean
Multisets. retainOccurrencesImpl(Multiset<E> multisetToModify, Multiset<?> occurrencesToRetain)
Delegate implementation which cares about the element type.(package private) static <E> int
Multisets. setCountImpl(Multiset<E> self, E element, int count)
An implementation ofsetCount(Object, int)
.(package private) static <E> boolean
Multisets. setCountImpl(Multiset<E> self, E element, int oldCount, int newCount)
An implementation ofsetCount(Object, int, int)
.(package private) static int
Multisets. sizeImpl(Multiset<?> multiset)
An implementation ofCollection.size()
.static <E> Multiset<E>
Multisets. sum(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)
Returns an unmodifiable view of the sum of two multisets.static <E> Multiset<E>
Multisets. union(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)
Returns an unmodifiable view of the union of two multisets.static <E> Multiset<E>
Multisets. unmodifiableMultiset(Multiset<? extends E> multiset)
Returns an unmodifiable view of the specified multiset.(package private) static <E> void
Serialization. writeMultiset(Multiset<E> multiset, java.io.ObjectOutputStream stream)
Stores the contents of a multiset in an output stream, as part of serialization.Constructors in com.google.common.collect with parameters of type Multiset Constructor Description Builder(Multiset<E> contents)
FilteredMultiset(Multiset<E> unfiltered, Predicate<? super E> predicate)
MultisetIteratorImpl(Multiset<E> multiset, java.util.Iterator<Multiset.Entry<E>> entryIterator)
SerializedForm(Multiset<?> multiset)
SynchronizedMultiset(Multiset<E> delegate, java.lang.Object mutex)
UnmodifiableMultiset(Multiset<? extends E> delegate)
-
Uses of Multiset in com.google.common.collect.testing.google
Methods in com.google.common.collect.testing.google that return Multiset Modifier and Type Method Description Multiset<K>
MultimapTestSuiteBuilder.KeysGenerator. create(java.lang.Object... elements)
Multiset<E>
MultisetTestSuiteBuilder.ReserializedMultisetGenerator. create(java.lang.Object... elements)
Multiset<E>
SortedMultisetTestSuiteBuilder.ForwardingTestMultisetGenerator. create(java.lang.Object... elements)
protected abstract Multiset<AnEnum>
TestEnumMultisetGenerator. create(AnEnum[] elements)
Multiset<AnEnum>
TestEnumMultisetGenerator. create(java.lang.Object... elements)
Multiset<E>
TestMultisetGenerator. create(java.lang.Object... elements)
Multiset<java.lang.String>
TestStringMultisetGenerator. create(java.lang.Object... elements)
protected abstract Multiset<java.lang.String>
TestStringMultisetGenerator. create(java.lang.String[] elements)
protected Multiset<E>
AbstractMultisetTester. getMultiset()
Methods in com.google.common.collect.testing.google that return types with arguments of type Multiset Modifier and Type Method Description java.util.Set<Feature<? super Multiset>>
MultisetFeature. getImpliedFeatures()
Methods in com.google.common.collect.testing.google with parameters of type Multiset Modifier and Type Method Description static <E> void
UnmodifiableCollectionTests. assertMultisetIsUnmodifiable(Multiset<E> multiset, E sampleElement)
Verifies that a multiset is immutable.(package private) static <T> SortedMultiset<T>
MultisetNavigationTester. cast(Multiset<T> iterable)
Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 -
Uses of Multiset in com.google.common.graph
Fields in com.google.common.graph with type parameters of type Multiset Modifier and Type Field Description private java.lang.ref.Reference<Multiset<N>>
UndirectedMultiNetworkConnections. adjacentNodesReference
private java.lang.ref.Reference<Multiset<N>>
DirectedMultiNetworkConnections. predecessorsReference
private java.lang.ref.Reference<Multiset<N>>
DirectedMultiNetworkConnections. successorsReference
Methods in com.google.common.graph that return Multiset Modifier and Type Method Description private Multiset<N>
UndirectedMultiNetworkConnections. adjacentNodesMultiset()
private Multiset<N>
DirectedMultiNetworkConnections. predecessorsMultiset()
private Multiset<N>
DirectedMultiNetworkConnections. successorsMultiset()
-
Uses of Multiset in com.google.common.testing
Methods in com.google.common.testing that return Multiset Modifier and Type Method Description private static <E> Multiset<E>
FreshValueGenerator. generateMultiset(E freshElement)
-
Uses of Multiset in com.google.common.util.concurrent
Fields in com.google.common.util.concurrent declared as Multiset Modifier and Type Field Description (package private) Multiset<Service.State>
ServiceManager.ServiceManagerState. states
-