/** * 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 a new {@link IndirectMap} with the same mappings as the given Map. * The {@link IndirectMap} is created with a capacity of twice the number of entries * in the given Map or 11 (whichever is greater), and a default load factor, which is 0.75. * * @param map the map whose mappings are to be placed into created {@link IndirectMap} * * @return a new {@link IndirectMap} with the same mappings as the given Map * @throws NullPointerException if the specified map is null */ public static <K, V> IndirectMap<K, V> createIndirectMap(Map<? extends K, ? extends V> map) { return provider.createIndirectMap(map); }
/** * 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 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 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 a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor (0.75). * * @param initialCapacity the initial capacity of the {@link IndirectMap} * * @return a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor * @throws IllegalArgumentException if the initial capacity is less than * or equal to zero */ public static <K, V> IndirectMap<K, V> createIndirectMap(int initialCapacity) { return provider.createIndirectMap(initialCapacity, 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 {@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 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 a new, empty {@link IndirectMap} with the default initial * capacity (11) and the default load factor (0.75). * * @return a new, empty {@link IndirectMap} with the default initial * capacity and the default load factor */ public static <K, V> IndirectMap<K, V> createIndirectMap() { return provider.createIndirectMap(11, 0.75f); }
/** * Construct a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor (0.75). * * @param initialCapacity the initial capacity of the {@link IndirectMap} * * @return a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor * @throws IllegalArgumentException if the initial capacity is less than * or equal to zero */ public static <K, V> IndirectMap<K, V> createIndirectMap(int initialCapacity) { return provider.createIndirectMap(initialCapacity, 0.75f); }
/** * 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 a new {@link IndirectMap} with the same mappings as the given Map. * The {@link IndirectMap} is created with a capacity of twice the number of entries * in the given Map or 11 (whichever is greater), and a default load factor, which is 0.75. * * @param map the map whose mappings are to be placed into created {@link IndirectMap} * * @return a new {@link IndirectMap} with the same mappings as the given Map * @throws NullPointerException if the specified map is null */ public static <K, V> IndirectMap<K, V> createIndirectMap(Map<? extends K, ? extends V> map) { return provider.createIndirectMap(map); }
/** * 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 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 a new, empty {@link IndirectMap} with the default initial * capacity (11) and the default load factor (0.75). * * @return a new, empty {@link IndirectMap} with the default initial * capacity and the default load factor */ public static <K, V> IndirectMap<K, V> createIndirectMap() { return provider.createIndirectMap(11, 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); }