| Modifier and Type | Interface and Description |
|---|---|
static class |
C.ListFactory.Predefined |
| Modifier and Type | Method and Description |
|---|---|
<ET> List<ET> |
create()
Create an empty
java.util.List contains the generic type E |
<ET> List<ET> |
create(Collection<? extends ET> collection)
Create a
java.util.List pre populated with elements of specified collection |
<ET> List<ET> |
create(int initialCapacity)
Create a
java.util.List with initial capacity |
<ET> List<ET> create()
Create an empty java.util.List contains the generic type E
ET - the generic type of the list element<ET> List<ET> create(Collection<? extends ET> collection) throws NullPointerException
Create a java.util.List pre populated with elements of specified collection
ET - the generic type of the list elementcollection - the collection whose elements are to be placed into this listNullPointerException - if the specified collection is null<ET> List<ET> create(int initialCapacity)
Create a java.util.List with initial capacity
ET - the generic type of the list elementinitialCapacity - the initial capacity of the new ListCopyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.