Class AbstractSortedSetDecorator<E>

    • Constructor Detail

      • AbstractSortedSetDecorator

        protected AbstractSortedSetDecorator()
        Constructor only used in deserialization, do not use otherwise.
        Since:
        3.1
      • AbstractSortedSetDecorator

        protected AbstractSortedSetDecorator​(java.util.Set<E> set)
        Constructor that wraps (not copies).
        Parameters:
        set - the set to decorate, must not be null
        Throws:
        java.lang.NullPointerException - if set is null
    • Method Detail

      • subSet

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

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

        public java.util.SortedSet<EtailSet​(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 Ecomparator()
        Specified by:
        comparator in interface java.util.SortedSet<E>