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()
E
first()
java.util.SortedSet<E>
headSet(E toElement)
E
last()
(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, iterator, 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:
multiset
in classMultisets.ElementSet<E>
-
comparator
public java.util.Comparator<? super E> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<E>
-
subSet
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<E>
-
headSet
public java.util.SortedSet<E> headSet(E toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<E>
-
tailSet
public java.util.SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSet
in interfacejava.util.SortedSet<E>
-
-