/** * Constructs an {@link IndirectSet} containing the elements of the specified * collection. * * @param collection a collection containing the elements to construct * the {@link IndirectSet} with * * @return an {@link IndirectSet} containing the elements of the specified collection * @throws NullPointerException if the specified collection is null */ public static <E> IndirectSet<E> createIndirectSet(Collection<? extends E> collection) { return provider.createIndirectSet(collection); }
/** * Construct an empty {@link IndirectSet} with the specified initial capacity * and the default load factor (0.75). * * @param initialCapacity the initial capacity of the set * * @return an empty {@link IndirectSet} with the specified initial capacity * and the default load factor * @throws IllegalArgumentException if the specified initial capacity is negative */ public static <E> IndirectSet<E> createIndirectSet(int initialCapacity) { return provider.createIndirectSet(initialCapacity, 0.75f); }
/** * Constructs an {@link IndirectSet} containing the elements of the specified * collection. * * @param collection a collection containing the elements to construct * the {@link IndirectSet} with * * @return an {@link IndirectSet} containing the elements of the specified collection * @throws NullPointerException if the specified collection is null */ public static <E> IndirectSet<E> createIndirectSet(Collection<? extends E> collection) { return provider.createIndirectSet(collection); }
/** * Construct an empty {@link IndirectSet} with the default initial capacity (10) * and the default load factor (0.75). * * @return an empty {@link IndirectSet} with the default initial capacity * and the default load factor */ public static <E> IndirectSet<E> createIndirectSet() { return provider.createIndirectSet(10, 0.75f); }
/** * Construct an empty {@link IndirectSet} with the default initial capacity (10) * and the default load factor (0.75). * * @return an empty {@link IndirectSet} with the default initial capacity * and the default load factor */ public static <E> IndirectSet<E> createIndirectSet() { return provider.createIndirectSet(10, 0.75f); }
/** * Construct an empty {@link IndirectSet} with the specified initial capacity * and the default load factor (0.75). * * @param initialCapacity the initial capacity of the set * * @return an empty {@link IndirectSet} with the specified initial capacity * and the default load factor * @throws IllegalArgumentException if the specified initial capacity is negative */ public static <E> IndirectSet<E> createIndirectSet(int initialCapacity) { return provider.createIndirectSet(initialCapacity, 0.75f); }