/** * Construct an empty {@link IndirectList} with the specified initial capacity * and default capacity increment (0). * * @param <E> the class of the objects in the list * @param initialCapacity the initial capacity of the vector * * @return an empty {@link IndirectList} with the specified initial capacity * and default capacity increment * @throws IllegalArgumentException if the specified initial capacity * is negative */ public static <E> IndirectList<E> createIndirectList(int initialCapacity) { return provider.createIndirectList(initialCapacity, 0); }
/** * Construct an {@link IndirectList} containing the elements of the specified * collection, in the order they are returned by the collection's iterator. * * @param <E> the class of the objects in the list * @param collection a collection containing the elements to construct * the {@link IndirectList} with. * @return an {@link IndirectList} containing the elements of the specified * collection */ public static <E> IndirectList<E> createIndirectList(Collection<? extends E> collection) { return provider.createIndirectList(collection); }
/** * Construct an empty {@link IndirectList} with the specified initial capacity * and default capacity increment (0). * * @param <E> the class of the objects in the list * @param initialCapacity the initial capacity of the vector * * @return an empty {@link IndirectList} with the specified initial capacity * and default capacity increment * @throws IllegalArgumentException if the specified initial capacity * is negative */ public static <E> IndirectList<E> createIndirectList(int initialCapacity) { return provider.createIndirectList(initialCapacity, 0); }
/** * Construct an empty {@link IndirectList} with the default initial capacity (10) * and default capacity increment (0). * * @param <E> the class of the objects in the list * @return an empty {@link IndirectList} with the default initial capacity * and default capacity increment */ public static <E> IndirectList<E> createIndirectList() { return provider.createIndirectList(10, 0); }
/** * Construct an {@link IndirectList} containing the elements of the specified * collection, in the order they are returned by the collection's iterator. * * @param <E> the class of the objects in the list * @param collection a collection containing the elements to construct * the {@link IndirectList} with. * @return an {@link IndirectList} containing the elements of the specified * collection */ public static <E> IndirectList<E> createIndirectList(Collection<? extends E> collection) { return provider.createIndirectList(collection); }
/** * Construct an empty {@link IndirectList} with the default initial capacity (10) * and default capacity increment (0). * * @param <E> the class of the objects in the list * @return an empty {@link IndirectList} with the default initial capacity * and default capacity increment */ public static <E> IndirectList<E> createIndirectList() { return provider.createIndirectList(10, 0); }