protected class ForwardingSortedMultiset.StandardElementSet extends 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 |
|---|
StandardElementSet()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
E |
ceiling(E e)
|
void |
clear()
|
Comparator |
comparator()
|
boolean |
contains(Object
|
boolean |
containsAll(Collection
|
Iterator |
descendingIterator()
|
NavigableSet |
descendingSet()
|
E |
first()
|
E |
floor(E e)
|
SortedSet |
headSet(E toElement)
|
NavigableSet |
headSet(E toElement, boolean inclusive)
|
E |
higher(E e)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
E |
last()
|
E |
lower(E e)
|
E |
pollFirst()
|
E |
pollLast()
|
boolean |
remove(Object
|
boolean |
removeAll(Collection
|
boolean |
retainAll(Collection
|
int |
size()
|
NavigableSet |
subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
|
SortedSet |
subSet(E fromElement, E toElement)
|
SortedSet |
tailSet(E fromElement)
|
NavigableSet |
tailSet(E fromElement, boolean inclusive)
|
equals, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitheadSet, iterator, subSet, tailSetcomparator, first, last, spliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic E lower(E e)
public E floor(E e)
public E ceiling(E e)
public E higher(E e)
public NavigableSet<E> descendingSet()
public Iterator<E> descendingIterator()
public E pollFirst()
public E pollLast()
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
public NavigableSet<E> headSet(E toElement, boolean inclusive)
public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
public Comparator<? super E> comparator()
public SortedSet<E> subSet(E fromElement, E toElement)
public SortedSet<E> headSet(E toElement)
public SortedSet<E> tailSet(E fromElement)
public E first()
public E last()
public void clear()
public boolean contains(Objecto)
public boolean containsAll(Collection<?> c)
public boolean isEmpty()
public Iterator<E> iterator()
public boolean remove(Objecto)
public int size()
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)