Package com.google.common.collect
Class Sets.FilteredSortedSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.Collections2.FilteredCollection<E>
-
- com.google.common.collect.Sets.FilteredSet<E>
-
- com.google.common.collect.Sets.FilteredSortedSet<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
,java.util.SortedSet<E>
- Direct Known Subclasses:
Sets.FilteredNavigableSet
- Enclosing class:
- Sets
private static class Sets.FilteredSortedSet<E> extends Sets.FilteredSet<E> implements java.util.SortedSet<E>
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.Collections2.FilteredCollection
predicate, unfiltered
-
-
Constructor Summary
Constructors Constructor Description FilteredSortedSet(java.util.SortedSet<E> unfiltered, Predicate<? super E> predicate)
-
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()
java.util.SortedSet<E>
subSet(E fromElement, E toElement)
java.util.SortedSet<E>
tailSet(E fromElement)
-
Methods inherited from class com.google.common.collect.Sets.FilteredSet
equals, hashCode
-
Methods inherited from class com.google.common.collect.Collections2.FilteredCollection
add, addAll, clear, contains, containsAll, createCombined, forEach, isEmpty, iterator, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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>
-
-