protected class ForwardingSortedMultiset.StandardElementSet
extends java.util.AbstractSet<E>
SortedMultiset.elementSet() in terms of the following
methods: Collection.clear(), SortedMultiset.comparator(), Multiset.contains(java.lang.Object), Multiset.containsAll(java.util.Collection<?>), Multiset.count(java.lang.Object),
SortedMultiset.firstEntry() SortedMultiset.headMultiset(E, com.google.common.collect.BoundType), Collection.isEmpty(), SortedMultiset.lastEntry(), SortedMultiset.subMultiset(E, com.google.common.collect.BoundType, E, com.google.common.collect.BoundType),
SortedMultiset.tailMultiset(E, com.google.common.collect.BoundType), the size() and iterator() methods of
SortedMultiset.entrySet(), and Multiset.remove(Object, int). In many
situations, you may wish to override SortedMultiset.elementSet() to forward to this
implementation or a subclass thereof.| Constructor and Description |
|---|
ForwardingSortedMultiset.StandardElementSet()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
E |
ceiling(E e) |
void |
clear() |
java.util.Comparator<? super E> |
comparator() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
java.util.Iterator<E> |
descendingIterator() |
java.util.NavigableSet<E> |
descendingSet() |
E |
first() |
E |
floor(E e) |
java.util.SortedSet<E> |
headSet(E toElement) |
java.util.NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
E |
last() |
E |
lower(E e) |
E |
pollFirst() |
E |
pollLast() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.util.NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
java.util.SortedSet<E> |
subSet(E fromElement,
E toElement) |
java.util.SortedSet<E> |
tailSet(E fromElement) |
java.util.NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
public ForwardingSortedMultiset.StandardElementSet()
public E lower(E e)
lower in interface java.util.NavigableSet<E>public E floor(E e)
floor in interface java.util.NavigableSet<E>public E ceiling(E e)
ceiling in interface java.util.NavigableSet<E>public E higher(E e)
higher in interface java.util.NavigableSet<E>public java.util.NavigableSet<E> descendingSet()
descendingSet in interface java.util.NavigableSet<E>public java.util.Iterator<E> descendingIterator()
descendingIterator in interface java.util.NavigableSet<E>public E pollFirst()
pollFirst in interface java.util.NavigableSet<E>public E pollLast()
pollLast in interface java.util.NavigableSet<E>public java.util.NavigableSet<E> subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive)
subSet in interface java.util.NavigableSet<E>public java.util.NavigableSet<E> headSet(E toElement,
boolean inclusive)
headSet in interface java.util.NavigableSet<E>public java.util.NavigableSet<E> tailSet(E fromElement,
boolean inclusive)
tailSet in interface java.util.NavigableSet<E>public java.util.Comparator<? super E> comparator()
comparator in interface java.util.SortedSet<E>public java.util.SortedSet<E> subSet(E fromElement,
E toElement)
subSet in interface java.util.SortedSet<E>public java.util.SortedSet<E> headSet(E toElement)
headSet in interface java.util.SortedSet<E>public java.util.SortedSet<E> tailSet(E fromElement)
tailSet in interface java.util.SortedSet<E>public E first()
first in interface java.util.SortedSet<E>public E last()
last in interface java.util.SortedSet<E>public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.Set<E>clear in class java.util.AbstractCollection<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>contains in interface java.util.Set<E>contains in class java.util.AbstractCollection<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>containsAll in interface java.util.Set<E>containsAll in class java.util.AbstractCollection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>isEmpty in interface java.util.Set<E>isEmpty in class java.util.AbstractCollection<E>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.Set<E>iterator in class java.util.AbstractCollection<E>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>remove in interface java.util.Set<E>remove in class java.util.AbstractCollection<E>public int size()
size in interface java.util.Collection<E>size in interface java.util.Set<E>size in class java.util.AbstractCollection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.Set<E>removeAll in class java.util.AbstractSet<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.Set<E>retainAll in class java.util.AbstractCollection<E>