public class ListFactory
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ListFactory()
Don't allow instantiation, do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static <E> java.util.List<E> |
createNewList()
Create a new ArrayList.
|
static <E> java.util.List<E> |
createNewList(java.util.Collection<E> collection)
Create a new ArrayList from a collection.
|
static <E> java.util.List<E> |
createNewList(int nSize)
Create a new ArrayList of a specified size.
|
static <E> java.util.List<E> |
createNewSortedList(java.util.Collection<E> collection)
Create a new sorted list from a collection.
|
static <E> java.util.List<E> |
createNewSortedList(int nSize)
Create a new sorted list of a specified size.
|
protected ListFactory()
public static <E> java.util.List<E> createNewList()
public static <E> java.util.List<E> createNewList(int nSize)
nSize
- Size of array list to create.public static <E> java.util.List<E> createNewList(java.util.Collection<E> collection)
collection
- Collection from which to create list.public static <E> java.util.List<E> createNewSortedList(int nSize)
nSize
- Size of array list to create.public static <E> java.util.List<E> createNewSortedList(java.util.Collection<E> collection)
collection
- Collection from which to create list.