Package com.google.common.collect
Class SortedMultisets.NavigableElementSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- com.google.common.collect.Sets.ImprovedAbstractSet<E>
-
- com.google.common.collect.Multisets.ElementSet<E>
-
- com.google.common.collect.SortedMultisets.ElementSet<E>
-
- com.google.common.collect.SortedMultisets.NavigableElementSet<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.NavigableSet<E>
,java.util.Set<E>
,java.util.SortedSet<E>
- Direct Known Subclasses:
ForwardingSortedMultiset.StandardElementSet
- Enclosing class:
- SortedMultisets
static class SortedMultisets.NavigableElementSet<E> extends SortedMultisets.ElementSet<E> implements java.util.NavigableSet<E>
A skeleton navigable implementation forSortedMultiset.elementSet()
.
-
-
Constructor Summary
Constructors Constructor Description NavigableElementSet(SortedMultiset<E> multiset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
ceiling(E e)
java.util.Iterator<E>
descendingIterator()
java.util.NavigableSet<E>
descendingSet()
E
floor(E e)
java.util.NavigableSet<E>
headSet(E toElement, boolean inclusive)
E
higher(E e)
E
lower(E e)
E
pollFirst()
E
pollLast()
java.util.NavigableSet<E>
subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
java.util.NavigableSet<E>
tailSet(E fromElement, boolean inclusive)
-
Methods inherited from class com.google.common.collect.SortedMultisets.ElementSet
comparator, first, headSet, iterator, last, multiset, subSet, tailSet
-
Methods inherited from class com.google.common.collect.Multisets.ElementSet
clear, contains, containsAll, isEmpty, remove, size
-
Methods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAll
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
NavigableElementSet
NavigableElementSet(SortedMultiset<E> multiset)
-
-
Method Detail
-
descendingSet
public java.util.NavigableSet<E> descendingSet()
- Specified by:
descendingSet
in interfacejava.util.NavigableSet<E>
-
descendingIterator
public java.util.Iterator<E> descendingIterator()
- Specified by:
descendingIterator
in interfacejava.util.NavigableSet<E>
-
subSet
public java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
- Specified by:
subSet
in interfacejava.util.NavigableSet<E>
-
headSet
public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive)
- Specified by:
headSet
in interfacejava.util.NavigableSet<E>
-
-