Class UnmodifiableNavigableSet<E>

    • Method Detail

      • unmodifiableNavigableSet

        public static <E> NavigableSet<E> unmodifiableNavigableSet(NavigableSet<E> set)
        Factory method to create an unmodifiable set.
        Type Parameters:
        E - the element type
        Parameters:
        set - the set to decorate, must not be null
        Returns:
        a new unmodifiable NavigableSet
        Throws:
        NullPointerException - if set is null
      • add

        public boolean add(E object)
      • addAll

        public boolean addAll(Collection<? extends E> coll)
      • clear

        public void clear()
      • remove

        public boolean remove(Object object)
      • removeAll

        public boolean removeAll(Collection<?> coll)
      • retainAll

        public boolean retainAll(Collection<?> coll)
      • subSet

        public SortedSet<E> subSet(E fromElement,
                                   E toElement)
      • descendingIterator

        public Iterator<E> descendingIterator()
      • subSet

        public NavigableSet<E> subSet(E fromElement,
                                      boolean fromInclusive,
                                      E toElement,
                                      boolean toInclusive)
      • headSet

        public NavigableSet<E> headSet(E toElement,
                                       boolean inclusive)
      • tailSet

        public NavigableSet<E> tailSet(E fromElement,
                                       boolean inclusive)