/** * Creates a new tree set copying a given collection. * * @param c * a collection to be copied into the new tree set. */ public IntRBTreeSet(final Collection<? extends Integer> c) { this(); addAll(c); } /**
/** * Creates a new tree set copying a given type-specific collection. * * @param c * a type-specific collection to be copied into the new tree set. */ public IntRBTreeSet(final IntCollection c) { this(); addAll(c); } /**
/** * Creates a new tree set copying a given sorted set (and its * {@link Comparator}). * * @param s * a {@link SortedSet} to be copied into the new tree set. */ public IntRBTreeSet(final SortedSet<Integer> s) { this(s.comparator()); addAll(s); } /**
/** * Creates a new tree set copying a given type-specific sorted set (and its * {@link Comparator}). * * @param s * a type-specific sorted set to be copied into the new tree set. */ public IntRBTreeSet(final IntSortedSet s) { this(s.comparator()); addAll(s); } /**