Uses of Interface
com.google.common.collect.Multiset
Packages that use Multiset
Package
Description
Collection interfaces and implementations, and other utilities for collections.
An API for representing graph (node and edge) data.
Testing utilities.
Concurrency utilities.
-
Uses of Multiset in com.google.common.collect
Subinterfaces of Multiset in com.google.common.collectModifier and TypeInterfaceDescriptioninterfaceAMultisetwhich maintains the ordering of its elements, according to either their natural order or an explicitComparator.(package private) interfaceSuperinterface ofSortedMultisetto 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 MultisetModifier and TypeClassDescription(package private) classBasic implementation ofMultiset<E>backed by an instance ofMap<E, Count>.(package private) classThis class provides a skeletal implementation of theMultisetinterface.(package private) classThis class provides a skeletal implementation of theSortedMultisetinterface.final classA multiset that supports concurrent modifications and that provides atomic versions of mostMultisetoperations (exceptions where noted).(package private) final classA descending wrapper around anImmutableSortedMultiset(package private) classA skeleton implementation of a descending multiset.final classEnumMultiset<E extends Enum<E>>Multiset implementation specialized for enum elements, supporting all single-element operations in O(1).(package private) classclassA multiset which forwards all its method calls to another multiset.classA sorted multiset which forwards all its method calls to another sorted multiset.protected classA skeleton implementation of a descending multiset view.final classHashMultiset<E>Multiset implementation backed by aHashMap.(package private) classclassAMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.classASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) final classAn implementation of ImmutableMultiset backed by a JDK Map and a list of entries.final classAMultisetimplementation with predictable iteration order.(package private) static classMultimaps.Keys<K,V> private static final class(package private) static classprivate static classAnAbstractMultisetwith additional default implementations, some of them linear-time implementations in terms ofelementSetandentrySet.(package private) classImplementation ofImmutableMultisetwith zero or more elements.(package private) final classAn immutable sorted multiset with one or more distinct elements.(package private) static final classfinal classTreeMultiset<E>A multiset which maintains the ordering of its elements, according to either their natural order or an explicitComparator.(package private) final classImplementation 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 MultisetModifier and TypeFieldDescriptionImmutableMultiset.Builder.contentsImmutableMultiset.ElementSet.delegateMultisets.UnmodifiableMultiset.delegateAbstractMultimap.keysMultimaps.UnmodifiableMultimap.keysSynchronized.SynchronizedMultimap.keysMultisets.MultisetIteratorImpl.multisetMultisets.FilteredMultiset.unfilteredMethods in com.google.common.collect with type parameters of type MultisetModifier and TypeMethodDescriptionCollectCollectors.toMultiset(Function<? super T, E> elementFunction, ToIntFunction<? super T> countFunction, Supplier<M> multisetSupplier) Multisets.toMultiset(Function<? super T, E> elementFunction, ToIntFunction<? super T> countFunction, Supplier<M> multisetSupplier) Returns aCollectorthat accumulates elements into a multiset created via the specifiedSupplier, whose elements are the result of applyingelementFunctionto the inputs, with counts equal to the result of applyingcountFunctionto the inputs.Methods in com.google.common.collect that return MultisetModifier and TypeMethodDescription(package private) static <T> Multiset<T> Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557AbstractMapBasedMultimap.createKeys()AbstractMultimap.createKeys()FilteredEntryMultimap.createKeys()FilteredKeyMultimap.createKeys()LinkedListMultimap.createKeys()Multimaps.MapMultimap.createKeys()Multimaps.TransformedEntriesMultimap.createKeys()DescendingMultiset.delegate()ForwardingMultiset.delegate()Multisets.UnmodifiableMultiset.delegate()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> Returns a view of the elements ofunfilteredthat satisfy a predicate.static <E> Multiset<E> Multisets.intersection(Multiset<E> multiset1, Multiset<?> multiset2) Returns an unmodifiable view of the intersection of two multisets.AbstractMultimap.keys()ForwardingMultimap.keys()Multimap.keys()Returns a view collection containing the key from each key-value pair in this multimap, without collapsing duplicates.Multimaps.UnmodifiableMultimap.keys()Synchronized.SynchronizedMultimap.keys()AbstractMultiset.ElementSet.multiset()AbstractMultiset.EntrySet.multiset()ForwardingMultiset.StandardElementSet.multiset()Multisets.ElementSet.multiset()Multisets.EntrySet.multiset()(package private) static <E> Multiset<E> static <E> Multiset<E> Returns an unmodifiable view of the sum of two multisets.static <E> Multiset<E> 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 MultisetModifier and TypeMethodDescriptionprivate static <E> booleanMultisets.addAllImpl(Multiset<E> self, Multiset<? extends E> elements) A specialization ofaddAllImplfor whenelementsis itself a Multiset.(package private) static <E> booleanMultisets.addAllImpl(Multiset<E> self, Collection<? extends E> elements) An implementation ofCollection.addAll(java.util.Collection<? extends E>).static booleanMultisets.containsOccurrences(Multiset<?> superMultiset, Multiset<?> subMultiset) ReturnstrueifsubMultiset.count(o) <= superMultiset.count(o)for allo.static <E> ImmutableMultiset<E> Multisets.copyHighestCountFirst(Multiset<E> multiset) Returns a copy ofmultisetas anImmutableMultisetwhose iteration order puts the 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 booleanMultisets.equalsImpl(Multiset<?> multiset, Object object) An implementation ofequals(java.lang.Object).static <E> Multiset<E> Returns a view of the elements ofunfilteredthat 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> Iterator<E> Multisets.iteratorImpl(Multiset<E> multiset) An implementation ofiterator().(package private) static intMultisets.linearTimeSizeImpl(Multiset<?> multiset) An implementation ofsize().(package private) static <E> Multiset<E> (package private) static <E> voidSerialization.populateMultiset(Multiset<E> multiset, ObjectInputStream stream) Populates a multiset by reading an input stream, as part of deserialization.(package private) static <E> voidSerialization.populateMultiset(Multiset<E> multiset, ObjectInputStream stream, int distinctElements) Populates a multiset by reading an input stream, as part of deserialization.(package private) static booleanMultisets.removeAllImpl(Multiset<?> self, Collection<?> elementsToRemove) An implementation ofremoveAll(java.util.Collection<?>).static booleanMultisets.removeOccurrences(Multiset<?> multisetToModify, Multiset<?> occurrencesToRemove) For each occurrence of an elementeinoccurrencesToRemove, removes one occurrence ofeinmultisetToModify.static booleanMultisets.removeOccurrences(Multiset<?> multisetToModify, Iterable<?> occurrencesToRemove) For each occurrence of an elementeinoccurrencesToRemove, removes one occurrence ofeinmultisetToModify.(package private) static booleanMultisets.retainAllImpl(Multiset<?> self, Collection<?> elementsToRetain) An implementation ofretainAll(java.util.Collection<?>).static booleanMultisets.retainOccurrences(Multiset<?> multisetToModify, Multiset<?> multisetToRetain) ModifiesmultisetToModifyso that its count for an elementeis at mostmultisetToRetain.count(e).private static <E> booleanMultisets.retainOccurrencesImpl(Multiset<E> multisetToModify, Multiset<?> occurrencesToRetain) Delegate implementation which cares about the element type.(package private) static <E> intMultisets.setCountImpl(Multiset<E> self, E element, int count) An implementation ofsetCount(Object, int).(package private) static <E> booleanMultisets.setCountImpl(Multiset<E> self, E element, int oldCount, int newCount) An implementation ofsetCount(Object, int, int).(package private) static <E> Spliterator<E> Multisets.spliteratorImpl(Multiset<E> multiset) static <E> Multiset<E> Returns an unmodifiable view of the sum of two multisets.static <E> Multiset<E> 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> voidSerialization.writeMultiset(Multiset<E> multiset, 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 MultisetModifierConstructorDescription(package private)(package private)ElementSet(List<Multiset.Entry<E>> entries, Multiset<E> delegate) (package private)FilteredMultiset(Multiset<E> unfiltered, Predicate<? super E> predicate) (package private)MultisetIteratorImpl(Multiset<E> multiset, Iterator<Multiset.Entry<E>> entryIterator) (package private)SerializedForm(Multiset<? extends Object> multiset) (package private)SynchronizedMultiset(Multiset<E> delegate, Object mutex) (package private)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 MultisetMethods in com.google.common.collect.testing.google that return types with arguments of type MultisetMethods in com.google.common.collect.testing.google with parameters of type MultisetModifier and TypeMethodDescriptionstatic <E> voidUnmodifiableCollectionTests.assertMultisetIsUnmodifiable(Multiset<E> multiset, E sampleElement) Verifies that a multiset is immutable.(package private) static <T> SortedMultiset<T> 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 MultisetModifier and TypeFieldDescriptionUndirectedMultiNetworkConnections.adjacentNodesReferenceDirectedMultiNetworkConnections.predecessorsReferenceDirectedMultiNetworkConnections.successorsReferenceMethods in com.google.common.graph that return MultisetModifier and TypeMethodDescriptionUndirectedMultiNetworkConnections.adjacentNodesMultiset()DirectedMultiNetworkConnections.predecessorsMultiset()DirectedMultiNetworkConnections.successorsMultiset() -
Uses of Multiset in com.google.common.testing
Methods in com.google.common.testing that return MultisetModifier and TypeMethodDescription(package 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 MultisetModifier and TypeFieldDescription(package private) final Multiset<Service.State> ServiceManager.ServiceManagerState.states