Class AbstractSortedSetDecorator<E>

  • Type Parameters:
    E - the type of the elements in the sorted set
    All Implemented Interfaces:, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>, java.util.SortedSet<E>
    Direct Known Subclasses:
    AbstractNavigableSetDecorator, UnmodifiableSortedSet

    public abstract class AbstractSortedSetDecorator<E>
    extends AbstractSetDecorator<E>
    implements java.util.SortedSet<E>
    Decorates another SortedSet to provide additional behaviour.

    Methods are forwarded directly to the decorated set.

    See Also:
    Serialized Form
    • Method Detail

      • 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>
      • comparator

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