Class IntAVLTreeSet

    • Constructor Detail

      • IntAVLTreeSet

        public IntAVLTreeSet()
        Creates a new empty tree set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(Comparator<? super Integer> c)
        Creates a new empty tree set with the given comparator.
        Parameters:
        c - a Comparator (even better, a type-specific comparator).
      • IntAVLTreeSet

        public IntAVLTreeSet​(Collection<? extends Integer> c)
        Creates a new tree set copying a given set.
        Parameters:
        c - a collection to be copied into the new tree set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(SortedSet<Integer> s)
        Creates a new tree set copying a given sorted set (and its Comparator).
        Parameters:
        s - a SortedSet to be copied into the new tree set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(IntCollection c)
        Creates a new tree set copying a given type-specific collection.
        Parameters:
        c - a type-specific collection to be copied into the new tree set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(IntSortedSet s)
        Creates a new tree set copying a given type-specific sorted set (and its Comparator).
        Parameters:
        s - a type-specific sorted set to be copied into the new tree set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(IntIterator i)
        Creates a new tree set using elements provided by a type-specific iterator.
        Parameters:
        i - a type-specific iterator whose elements will fill the set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(Iterator<?> i)
        Creates a new tree set using elements provided by an iterator.
        Parameters:
        i - an iterator whose elements will fill the set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(int[] a,
                             int offset,
                             int length,
                             Comparator<? super Integer> c)
        Creates a new tree set and fills it with the elements of a given array using a given Comparator.
        Parameters:
        a - an array whose elements will be used to fill the set.
        offset - the first element to use.
        length - the number of elements to use.
        c - a Comparator (even better, a type-specific comparator).
      • IntAVLTreeSet

        public IntAVLTreeSet​(int[] a,
                             int offset,
                             int length)
        Creates a new tree set and fills it with the elements of a given array.
        Parameters:
        a - an array whose elements will be used to fill the set.
        offset - the first element to use.
        length - the number of elements to use.
      • IntAVLTreeSet

        public IntAVLTreeSet​(int[] a)
        Creates a new tree set copying the elements of an array.
        Parameters:
        a - an array to be copied into the new tree set.
      • IntAVLTreeSet

        public IntAVLTreeSet​(int[] a,
                             Comparator<? super Integer> c)
        Creates a new tree set copying the elements of an array using a given Comparator.
        Parameters:
        a - an array to be copied into the new tree set.
        c - a Comparator (even better, a type-specific comparator).