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 |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Multisets.AbstractEntry<E>
|
(package private) static class |
Multisets.ImmutableEntry<E> |
private static class |
RegularImmutableMultiset.NonTerminalEntry<E> |
Modifier and Type | Field and Description |
---|---|
private Multiset.Entry<E> |
Multisets.MultisetIteratorImpl.currentEntry |
Modifier and Type | Field and Description |
---|---|
private ImmutableList<Multiset.Entry<E>> |
JdkBackedImmutableMultiset.entries |
private java.util.List<Multiset.Entry<E>> |
ImmutableMultiset.ElementSet.entries |
private java.util.Iterator<Multiset.Entry<E>> |
Multisets.MultisetIteratorImpl.entryIterator |
private java.util.Set<Multiset.Entry<E>> |
AbstractMultiset.entrySet |
private java.util.Set<Multiset.Entry<E>> |
DescendingMultiset.entrySet |
private ImmutableSet<Multiset.Entry<E>> |
ImmutableMultiset.entrySet |
(package private) java.util.Set<Multiset.Entry<E>> |
Multisets.UnmodifiableMultiset.entrySet |
(package private) java.util.Set<Multiset.Entry<E>> |
Synchronized.SynchronizedMultiset.entrySet |
Modifier and Type | Method and Description |
---|---|
Multiset.Entry<E> |
DescendingMultiset.firstEntry() |
Multiset.Entry<E> |
DescendingImmutableSortedMultiset.firstEntry() |
Multiset.Entry<E> |
ForwardingSortedMultiset.firstEntry() |
Multiset.Entry<E> |
RegularImmutableSortedMultiset.firstEntry() |
Multiset.Entry<E> |
SortedMultiset.firstEntry()
Returns the entry of the first element in this multiset, or
null if this multiset is
empty. |
Multiset.Entry<E> |
AbstractSortedMultiset.firstEntry() |
Multiset.Entry<E> |
UnmodifiableSortedMultiset.firstEntry() |
(package private) Multiset.Entry<E> |
ImmutableMultiset.EntrySet.get(int index) |
(package private) Multiset.Entry<E> |
DescendingImmutableSortedMultiset.getEntry(int index) |
(package private) Multiset.Entry<E> |
RegularImmutableSortedMultiset.getEntry(int index) |
(package private) Multiset.Entry<E> |
JdkBackedImmutableMultiset.getEntry(int index) |
(package private) Multiset.Entry<E> |
RegularImmutableMultiset.getEntry(int index) |
(package private) abstract Multiset.Entry<E> |
ImmutableMultiset.getEntry(int index) |
(package private) Multiset.Entry<K> |
ImmutableMultimap.Keys.getEntry(int index) |
static <E> Multiset.Entry<E> |
Multisets.immutableEntry(E e,
int n)
Returns an immutable multiset entry with the specified element and count.
|
Multiset.Entry<E> |
DescendingMultiset.lastEntry() |
Multiset.Entry<E> |
DescendingImmutableSortedMultiset.lastEntry() |
Multiset.Entry<E> |
ForwardingSortedMultiset.lastEntry() |
Multiset.Entry<E> |
RegularImmutableSortedMultiset.lastEntry() |
Multiset.Entry<E> |
SortedMultiset.lastEntry()
Returns the entry of the last element in this multiset, or
null if this multiset is
empty. |
Multiset.Entry<E> |
AbstractSortedMultiset.lastEntry() |
Multiset.Entry<E> |
UnmodifiableSortedMultiset.lastEntry() |
Multiset.Entry<E> |
DescendingMultiset.pollFirstEntry() |
Multiset.Entry<E> |
ImmutableSortedMultiset.pollFirstEntry()
Deprecated.
Unsupported operation.
|
Multiset.Entry<E> |
ForwardingSortedMultiset.pollFirstEntry() |
Multiset.Entry<E> |
SortedMultiset.pollFirstEntry()
Returns and removes the entry associated with the lowest element in this multiset, or returns
null if this multiset is empty. |
Multiset.Entry<E> |
AbstractSortedMultiset.pollFirstEntry() |
Multiset.Entry<E> |
UnmodifiableSortedMultiset.pollFirstEntry() |
Multiset.Entry<E> |
DescendingMultiset.pollLastEntry() |
Multiset.Entry<E> |
ImmutableSortedMultiset.pollLastEntry()
Deprecated.
Unsupported operation.
|
Multiset.Entry<E> |
ForwardingSortedMultiset.pollLastEntry() |
Multiset.Entry<E> |
SortedMultiset.pollLastEntry()
Returns and removes the entry associated with the greatest element in this multiset, or returns
null if this multiset is empty. |
Multiset.Entry<E> |
AbstractSortedMultiset.pollLastEntry() |
Multiset.Entry<E> |
UnmodifiableSortedMultiset.pollLastEntry() |
protected Multiset.Entry<E> |
ForwardingSortedMultiset.standardFirstEntry()
A sensible definition of
ForwardingSortedMultiset.firstEntry() in terms of entrySet().iterator() . |
protected Multiset.Entry<E> |
ForwardingSortedMultiset.standardLastEntry()
A sensible definition of
ForwardingSortedMultiset.lastEntry() in terms of descendingMultiset().entrySet().iterator() . |
protected Multiset.Entry<E> |
ForwardingSortedMultiset.standardPollFirstEntry()
A sensible definition of
ForwardingSortedMultiset.pollFirstEntry() in terms of entrySet().iterator() . |
protected Multiset.Entry<E> |
ForwardingSortedMultiset.standardPollLastEntry()
A sensible definition of
ForwardingSortedMultiset.pollLastEntry() in terms of descendingMultiset().entrySet().iterator() . |
private Multiset.Entry<E> |
TreeMultiset.wrapEntry(TreeMultiset.AvlNode<E> baseEntry) |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Set<Multiset.Entry<E>> |
AbstractMultiset.createEntrySet() |
(package private) java.util.Set<Multiset.Entry<E>> |
DescendingMultiset.createEntrySet() |
private ImmutableSet<Multiset.Entry<E>> |
ImmutableMultiset.createEntrySet() |
(package private) java.util.Set<Multiset.Entry<E>> |
Multisets.FilteredMultiset.createEntrySet() |
java.util.Set<Multiset.Entry<E>> |
ConcurrentHashMultiset.createEntrySet()
Deprecated.
Internal method, use
AbstractMultiset.entrySet() . |
(package private) java.util.Iterator<Multiset.Entry<E>> |
TreeMultiset.descendingEntryIterator() |
(package private) abstract java.util.Iterator<Multiset.Entry<E>> |
AbstractSortedMultiset.descendingEntryIterator() |
(package private) java.util.Iterator<Multiset.Entry<E>> |
AbstractMapBasedMultiset.entryIterator() |
(package private) abstract java.util.Iterator<Multiset.Entry<E>> |
AbstractMultiset.entryIterator() |
(package private) abstract java.util.Iterator<Multiset.Entry<E>> |
DescendingMultiset.entryIterator() |
(package private) java.util.Iterator<Multiset.Entry<E>> |
TreeMultiset.entryIterator() |
(package private) java.util.Iterator<Multiset.Entry<E>> |
Multisets.FilteredMultiset.entryIterator() |
(package private) java.util.Iterator<Multiset.Entry<K>> |
Multimaps.Keys.entryIterator() |
(package private) java.util.Iterator<Multiset.Entry<E>> |
ConcurrentHashMultiset.entryIterator() |
(package private) java.util.Iterator<Multiset.Entry<E>> |
EnumMultiset.entryIterator() |
java.util.Set<Multiset.Entry<E>> |
AbstractMapBasedMultiset.entrySet()
Returns a view of the contents of this multiset, grouped into
Multiset.Entry instances,
each providing an element of the multiset and the count of that element. |
java.util.Set<Multiset.Entry<E>> |
AbstractMultiset.entrySet() |
java.util.Set<Multiset.Entry<E>> |
DescendingMultiset.entrySet() |
java.util.Set<Multiset.Entry<K>> |
FilteredEntryMultimap.Keys.entrySet() |
ImmutableSet<Multiset.Entry<E>> |
ImmutableMultiset.entrySet() |
java.util.Set<Multiset.Entry<E>> |
Multisets.UnmodifiableMultiset.entrySet() |
java.util.Set<Multiset.Entry<E>> |
ForwardingMultiset.entrySet() |
java.util.Set<Multiset.Entry<E>> |
Multiset.entrySet()
Returns a view of the contents of this multiset, grouped into
Multiset.Entry instances,
each providing an element of the multiset and the count of that element. |
java.util.Set<Multiset.Entry<E>> |
SortedMultiset.entrySet()
Returns a view of the contents of this multiset, grouped into
Multiset.Entry instances,
each providing an element of the multiset and the count of that element. |
java.util.Set<Multiset.Entry<E>> |
Synchronized.SynchronizedMultiset.entrySet() |
java.util.Iterator<Multiset.Entry<E>> |
AbstractMultiset.EntrySet.iterator() |
private java.util.List<Multiset.Entry<E>> |
ConcurrentHashMultiset.EntrySet.snapshot() |
Modifier and Type | Method and Description |
---|---|
int |
Multisets.DecreasingCount.compare(Multiset.Entry<?> entry1,
Multiset.Entry<?> entry2) |
int |
Multisets.DecreasingCount.compare(Multiset.Entry<?> entry1,
Multiset.Entry<?> entry2) |
private static <E> E |
SortedMultisets.getElementOrNull(Multiset.Entry<E> entry) |
private static <E> E |
SortedMultisets.getElementOrThrow(Multiset.Entry<E> entry) |
Modifier and Type | Method and Description |
---|---|
(package private) static <E> ImmutableMultiset<E> |
ImmutableMultiset.copyFromEntries(java.util.Collection<? extends Multiset.Entry<? extends E>> entries) |
private static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.copyOfSortedEntries(java.util.Comparator<? super E> comparator,
java.util.Collection<Multiset.Entry<E>> entries) |
(package private) static <E> ImmutableMultiset<E> |
JdkBackedImmutableMultiset.create(java.util.Collection<? extends Multiset.Entry<? extends E>> entries) |
(package private) static <E> ImmutableMultiset<E> |
RegularImmutableMultiset.create(java.util.Collection<? extends Multiset.Entry<? extends E>> entries) |
(package private) static <E> java.util.Iterator<E> |
Multisets.elementIterator(java.util.Iterator<Multiset.Entry<E>> entryIterator) |
Constructor and Description |
---|
ElementSet(java.util.List<Multiset.Entry<E>> entries,
Multiset<E> delegate) |
JdkBackedImmutableMultiset(java.util.Map<E,java.lang.Integer> delegateMap,
ImmutableList<Multiset.Entry<E>> entries,
long size) |
MultisetIteratorImpl(Multiset<E> multiset,
java.util.Iterator<Multiset.Entry<E>> entryIterator) |
Modifier and Type | Field and Description |
---|---|
private Multiset.Entry<E> |
MultisetNavigationTester.a |
private Multiset.Entry<E> |
MultisetNavigationTester.b |
private Multiset.Entry<E> |
MultisetNavigationTester.c |
Modifier and Type | Method and Description |
---|---|
Multiset.Entry<E>[] |
MultisetTestSuiteBuilder.EntrySetGenerator.createArray(int length) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Multiset.Entry<E>> |
MultisetTestSuiteBuilder.EntrySetGenerator.create(java.lang.Object... entries) |
(package private) abstract <E> java.util.List<Multiset.Entry<E>> |
MultisetNavigationTester.SubMultisetSpec.expectedEntries(int targetEntry,
java.util.List<Multiset.Entry<E>> entries) |
java.lang.Iterable<Multiset.Entry<E>> |
MultisetTestSuiteBuilder.EntrySetGenerator.order(java.util.List<Multiset.Entry<E>> insertionOrder) |
SampleElements<Multiset.Entry<E>> |
MultisetTestSuiteBuilder.EntrySetGenerator.samples() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
MultisetNavigationTester.expectAddFailure(SortedMultiset<E> multiset,
Multiset.Entry<E> entry) |
(package private) void |
MultisetNavigationTester.expectRemoveZero(SortedMultiset<E> multiset,
Multiset.Entry<E> entry) |
(package private) void |
MultisetNavigationTester.expectSetCountFailure(SortedMultiset<E> multiset,
Multiset.Entry<E> entry) |
Modifier and Type | Method and Description |
---|---|
(package private) abstract <E> java.util.List<Multiset.Entry<E>> |
MultisetNavigationTester.SubMultisetSpec.expectedEntries(int targetEntry,
java.util.List<Multiset.Entry<E>> entries) |
java.lang.Iterable<Multiset.Entry<E>> |
MultisetTestSuiteBuilder.EntrySetGenerator.order(java.util.List<Multiset.Entry<E>> insertionOrder) |
(package private) abstract <E> SortedMultiset<E> |
MultisetNavigationTester.SubMultisetSpec.subMultiset(SortedMultiset<E> multiset,
java.util.List<Multiset.Entry<E>> entries,
int targetEntry) |
private static int |
MultisetNavigationTester.totalSize(java.lang.Iterable<? extends Multiset.Entry<?>> entries) |