Uses of Interface
com.google.common.collect.Multiset.Entry
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of Multiset.Entry in com.google.common.collect
Modifier and TypeMethodDescriptionForwardingSortedMultiset.firstEntry()
SortedMultiset.firstEntry()
Returns the entry of the first element in this multiset, ornull
if this multiset is empty.static <E extends @Nullable Object>
Multiset.Entry<E> Multisets.immutableEntry
(E e, int n) Returns an immutable multiset entry with the specified element and count.ForwardingSortedMultiset.lastEntry()
SortedMultiset.lastEntry()
Returns the entry of the last element in this multiset, ornull
if this multiset is empty.ForwardingSortedMultiset.pollFirstEntry()
final @Nullable Multiset.Entry
<E> ImmutableSortedMultiset.pollFirstEntry()
Deprecated.Unsupported operation.SortedMultiset.pollFirstEntry()
Returns and removes the entry associated with the lowest element in this multiset, or returnsnull
if this multiset is empty.ForwardingSortedMultiset.pollLastEntry()
final @Nullable Multiset.Entry
<E> ImmutableSortedMultiset.pollLastEntry()
Deprecated.Unsupported operation.SortedMultiset.pollLastEntry()
Returns and removes the entry associated with the greatest element in this multiset, or returnsnull
if this multiset is empty.protected @Nullable Multiset.Entry
<E> ForwardingSortedMultiset.standardFirstEntry()
A sensible definition ofForwardingSortedMultiset.firstEntry()
in terms ofentrySet().iterator()
.protected @Nullable Multiset.Entry
<E> ForwardingSortedMultiset.standardLastEntry()
A sensible definition ofForwardingSortedMultiset.lastEntry()
in terms ofdescendingMultiset().entrySet().iterator()
.protected @Nullable Multiset.Entry
<E> ForwardingSortedMultiset.standardPollFirstEntry()
A sensible definition ofForwardingSortedMultiset.pollFirstEntry()
in terms ofentrySet().iterator()
.protected @Nullable Multiset.Entry
<E> ForwardingSortedMultiset.standardPollLastEntry()
A sensible definition ofForwardingSortedMultiset.pollLastEntry()
in terms ofdescendingMultiset().entrySet().iterator()
.Modifier and TypeMethodDescriptionConcurrentHashMultiset.createEntrySet()
Deprecated.Internal method, useMultiset.entrySet()
.ForwardingMultiset.entrySet()
ImmutableMultiset.entrySet()
Multiset.entrySet()
Returns a view of the contents of this multiset, grouped intoMultiset.Entry
instances, each providing an element of the multiset and the count of that element.SortedMultiset.entrySet()
Returns a view of the contents of this multiset, grouped intoMultiset.Entry
instances, each providing an element of the multiset and the count of that element.