Package com.google.common.collect
Class SortedMultisets.ElementSet<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>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.Set<E>,java.util.SortedSet<E>
- Direct Known Subclasses:
SortedMultisets.NavigableElementSet
- Enclosing class:
- SortedMultisets
static class SortedMultisets.ElementSet<E> extends Multisets.ElementSet<E> implements java.util.SortedSet<E>
A skeleton implementation forSortedMultiset.elementSet().
-
-
Field Summary
Fields Modifier and Type Field Description private SortedMultiset<E>multiset
-
Constructor Summary
Constructors Constructor Description ElementSet(SortedMultiset<E> multiset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<? super E>comparator()Efirst()java.util.SortedSet<E>headSet(E toElement)java.util.Iterator<E>iterator()Elast()(package private) SortedMultiset<E>multiset()java.util.SortedSet<E>subSet(E fromElement, E toElement)java.util.SortedSet<E>tailSet(E fromElement)-
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
-
-
-
-
Field Detail
-
multiset
private final SortedMultiset<E> multiset
-
-
Constructor Detail
-
ElementSet
ElementSet(SortedMultiset<E> multiset)
-
-
Method Detail
-
multiset
final SortedMultiset<E> multiset()
- Specified by:
multisetin classMultisets.ElementSet<E>
-
iterator
public java.util.Iterator<E> iterator()
-
comparator
public java.util.Comparator<? super E> comparator()
- Specified by:
comparatorin interfacejava.util.SortedSet<E>
-
subSet
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
- Specified by:
subSetin interfacejava.util.SortedSet<E>
-
headSet
public java.util.SortedSet<E> headSet(E toElement)
- Specified by:
headSetin interfacejava.util.SortedSet<E>
-
tailSet
public java.util.SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSetin interfacejava.util.SortedSet<E>
-
-