Package com.google.common.collect
Class ForwardingSortedMultiset.StandardElementSet
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractSet<E>
- 
- com.google.common.collect.ForwardingSortedMultiset.StandardElementSet
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<E>,- java.util.Collection<E>,- java.util.NavigableSet<E>,- java.util.Set<E>,- java.util.SortedSet<E>
 - Enclosing class:
- ForwardingSortedMultiset<E extends @Nullable java.lang.Object>
 
 protected class ForwardingSortedMultiset.StandardElementSet extends java.util.AbstractSet<E> A sensible implementation ofSortedMultiset.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), thesize()anditerator()methods ofSortedMultiset.entrySet(), andMultiset.remove(Object, int). In many situations, you may wish to overrideSortedMultiset.elementSet()to forward to this implementation or a subclass thereof.- Since:
- 15.0
 
- 
- 
Constructor SummaryConstructors Constructor Description StandardElementSet()Constructor for use by subclasses.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Eceiling(E e)voidclear()java.util.Comparator<? super E>comparator()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)java.util.Iterator<E>descendingIterator()java.util.NavigableSet<E>descendingSet()Efirst()Efloor(E e)java.util.SortedSet<E>headSet(E toElement)java.util.NavigableSet<E>headSet(E toElement, boolean inclusive)Ehigher(E e)booleanisEmpty()java.util.Iterator<E>iterator()Elast()Elower(E e)EpollFirst()EpollLast()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()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)- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Constructor Detail- 
StandardElementSetpublic StandardElementSet() Constructor for use by subclasses.
 
- 
 - 
Method Detail- 
lower@CheckForNull public E lower(E e) - Specified by:
- lowerin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
floor@CheckForNull public E floor(E e) - Specified by:
- floorin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
ceiling@CheckForNull public E ceiling(E e) - Specified by:
- ceilingin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
higher@CheckForNull public E higher(E e) - Specified by:
- higherin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
descendingSetpublic java.util.NavigableSet<E> descendingSet() - Specified by:
- descendingSetin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
descendingIteratorpublic java.util.Iterator<E> descendingIterator() - Specified by:
- descendingIteratorin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
pollFirst@CheckForNull public E pollFirst() - Specified by:
- pollFirstin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
pollLast@CheckForNull public E pollLast() - Specified by:
- pollLastin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
subSetpublic java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)- Specified by:
- subSetin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
headSetpublic java.util.NavigableSet<E> headSet(E toElement, boolean inclusive)- Specified by:
- headSetin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
tailSetpublic java.util.NavigableSet<E> tailSet(E fromElement, boolean inclusive)- Specified by:
- tailSetin interface- java.util.NavigableSet<E extends @Nullable java.lang.Object>
 
 - 
iteratorpublic java.util.Iterator<E> iterator() 
 - 
comparatorpublic java.util.Comparator<? super E> comparator() - Specified by:
- comparatorin interface- java.util.SortedSet<E extends @Nullable java.lang.Object>
 
 - 
subSetpublic java.util.SortedSet<E> subSet(E fromElement, E toElement)- Specified by:
- subSetin interface- java.util.SortedSet<E extends @Nullable java.lang.Object>
 
 - 
headSetpublic java.util.SortedSet<E> headSet(E toElement) - Specified by:
- headSetin interface- java.util.SortedSet<E extends @Nullable java.lang.Object>
 
 - 
tailSetpublic java.util.SortedSet<E> tailSet(E fromElement) - Specified by:
- tailSetin interface- java.util.SortedSet<E extends @Nullable java.lang.Object>
 
 - 
firstpublic E first() - Specified by:
- firstin interface- java.util.SortedSet<E extends @Nullable java.lang.Object>
 
 - 
lastpublic E last() - Specified by:
- lastin interface- java.util.SortedSet<E extends @Nullable java.lang.Object>
 
 - 
clearpublic void clear() 
 - 
containspublic boolean contains(@CheckForNull java.lang.Object o) 
 - 
containsAllpublic boolean containsAll(java.util.Collection<?> c) 
 - 
isEmptypublic boolean isEmpty() 
 - 
removepublic boolean remove(@CheckForNull java.lang.Object o) 
 - 
sizepublic int size() 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> c) 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> c) 
 
- 
 
-