Class SynchronizedTreeList<E>

    • Constructor Detail

      • SynchronizedTreeList

        public SynchronizedTreeList()
        Constructs an empty SynchronizedTreeList ordered by the natural ordering of its elements.
      • SynchronizedTreeList

        public SynchronizedTreeList​(Comparator<? super E> comparator)
        Constructs an empty SynchronizedTreeList ordered by the given comparator.
        Parameters:
        comparator - the comparator used to order elements, or null to use natural ordering
      • SynchronizedTreeList

        public SynchronizedTreeList​(Collection<? extends E> c)
        Constructs a SynchronizedTreeList containing the elements of the given collection, ordered by their natural ordering. Duplicate elements are silently discarded.
        Parameters:
        c - the collection whose elements are to be placed into this list
        Throws:
        ClassCastException - if any element is not mutually comparable
        NullPointerException - if c is null, or if any element of c is null
      • SynchronizedTreeList

        public SynchronizedTreeList​(Comparator<? super E> comparator,
                                    Collection<? extends E> c)
        Constructs a SynchronizedTreeList containing the elements of the given collection, ordered by the given comparator. Duplicate elements are silently discarded.
        Parameters:
        comparator - the comparator used to order elements, or null to use natural ordering
        c - the collection whose elements are to be placed into this list
        Throws:
        ClassCastException - if any element is not mutually comparable
        NullPointerException - if c is null, or if any element of c is null