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 interfaceSortedMultiset<E>AMultisetwhich maintains the ordering of its elements, according to either their natural order or an explicitComparator.(package private) interfaceSortedMultisetBridge<E>Superinterface 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 Multiset Modifier and Type Class Description (package private) classAbstractMapBasedMultiset<E>Basic implementation ofMultiset<E>backed by an instance ofMap<E, Count>.(package private) classAbstractMultiset<E>This class provides a skeletal implementation of theMultisetinterface.(package private) classAbstractSortedMultiset<E>This class provides a skeletal implementation of theSortedMultisetinterface.classConcurrentHashMultiset<E>A multiset that supports concurrent modifications and that provides atomic versions of mostMultisetoperations (exceptions where noted).(package private) classDescendingImmutableSortedMultiset<E>A descending wrapper around anImmutableSortedMultiset(package private) classDescendingMultiset<E>A skeleton implementation of a descending multiset.classEnumMultiset<E extends java.lang.Enum<E>>Multiset implementation specialized for enum elements, supporting all single-element operations in O(1).(package private) classFilteredEntryMultimap.KeysclassForwardingMultiset<E>A multiset which forwards all its method calls to another multiset.classForwardingSortedMultiset<E>A sorted multiset which forwards all its method calls to another sorted multiset.protected classForwardingSortedMultiset.StandardDescendingMultisetA skeleton implementation of a descending multiset view.classHashMultiset<E>Multiset implementation backed by aHashMap.(package private) classImmutableMultimap.KeysclassImmutableMultiset<E>AMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSortedMultiset<E>ASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) classImmutableSortedMultisetFauxverideShim<E>"Overrides" theImmutableMultisetstatic methods that lackImmutableSortedMultisetequivalents with deprecated, exception-throwing versions.(package private) classJdkBackedImmutableMultiset<E>An implementation of ImmutableMultiset backed by a JDK Map and a list of entries.classLinkedHashMultiset<E>AMultisetimplementation with predictable iteration order.(package private) static classMultimaps.Keys<K,V>private static classMultisets.FilteredMultiset<E>(package private) static classMultisets.UnmodifiableMultiset<E>private static classMultisets.ViewMultiset<E>AnAbstractMultisetwith additional default implementations, some of them linear-time implementations in terms ofelementSetandentrySet.(package private) classRegularImmutableMultiset<E>Implementation ofImmutableMultisetwith zero or more elements.(package private) classRegularImmutableSortedMultiset<E>An immutable sorted multiset with one or more distinct elements.private static classSynchronized.SynchronizedMultiset<E>classTreeMultiset<E>A multiset which maintains the ordering of its elements, according to either their natural order or an explicitComparator.(package private) classUnmodifiableSortedMultiset<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. contentsprivate Multiset<E>ImmutableMultiset.ElementSet. delegate(package private) Multiset<? extends E>Multisets.UnmodifiableMultiset. delegateprivate Multiset<K>AbstractMultimap. keys(package private) Multiset<K>Multimaps.UnmodifiableMultimap. keys(package private) Multiset<K>Synchronized.SynchronizedMultimap. keysprivate Multiset<E>Multisets.MultisetIteratorImpl. multiset(package private) Multiset<E>Multisets.FilteredMultiset. unfilteredMethods in com.google.common.collect with type parameters of type Multiset Modifier and Type Method Description static <T,E,M extends Multiset<E>>
java.util.stream.Collector<T,?,M>Multisets. toMultiset(java.util.function.Function<? super T,E> elementFunction, java.util.function.ToIntFunction<? super T> countFunction, java.util.function.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 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>AbstractMapBasedMultimap. createKeys()(package private) abstract Multiset<K>AbstractMultimap. createKeys()(package private) Multiset<K>FilteredEntryMultimap. createKeys()(package private) Multiset<K>FilteredKeyMultimap. createKeys()(package private) Multiset<K>LinkedListMultimap. createKeys()(package private) Multiset<K>Multimaps.MapMultimap. createKeys()(package private) Multiset<K>Multimaps.TransformedEntriesMultimap. 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 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.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.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) 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 private 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, java.util.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 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 booleanMultisets. 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 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> java.util.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>Synchronized. multiset(Multiset<E> multiset, java.lang.Object mutex)(package private) static <E> voidSerialization. populateMultiset(Multiset<E> multiset, java.io.ObjectInputStream stream)Populates a multiset by reading an input stream, as part of deserialization.(package private) static <E> voidSerialization. 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 booleanMultisets. removeAllImpl(Multiset<?> self, java.util.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, java.lang.Iterable<?> occurrencesToRemove)For each occurrence of an elementeinoccurrencesToRemove, removes one occurrence ofeinmultisetToModify.(package private) static booleanMultisets. retainAllImpl(Multiset<?> self, java.util.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> java.util.Spliterator<E>Multisets. spliteratorImpl(Multiset<E> multiset)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> voidSerialization. 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)ElementSet(java.util.List<Multiset.Entry<E>> entries, Multiset<E> delegate)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> voidUnmodifiableCollectionTests. 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. adjacentNodesReferenceprivate java.lang.ref.Reference<Multiset<N>>DirectedMultiNetworkConnections. predecessorsReferenceprivate java.lang.ref.Reference<Multiset<N>>DirectedMultiNetworkConnections. successorsReferenceMethods 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
-