Class 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>
    • Constructor Detail

      • FilteredSortedSet

        FilteredSortedSet​(java.util.SortedSet<E> unfiltered,
                          Predicate<? super E> predicate)
    • Method Detail

      • comparator

        public java.util.Comparator<? super E> comparator()
        Specified by:
        comparator in interface java.util.SortedSet<E>
      • subSet

        public java.util.SortedSet<E> subSet​(E fromElement,
                                             E toElement)
        Specified by:
        subSet in interface java.util.SortedSet<E>
      • headSet

        public java.util.SortedSet<E> headSet​(E toElement)
        Specified by:
        headSet in interface java.util.SortedSet<E>
      • tailSet

        public java.util.SortedSet<E> tailSet​(E fromElement)
        Specified by:
        tailSet in interface java.util.SortedSet<E>
      • first

        public E first()
        Specified by:
        first in interface java.util.SortedSet<E>
      • last

        public E last()
        Specified by:
        last in interface java.util.SortedSet<E>