public class ListFactory
extends java.lang.Object
| Constructor and Description |
|---|
ListFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> IList<T> |
newInstanceArray()
This method returns an instance of a IList implemented with an array.
|
static <T> IList<T> |
newInstanceArray(java.util.Collection<T> col)
This method returns an instance of a IList implemented with an array.
|
static <T> IList<T> |
newInstanceArray(IList<T> list)
This method returns an instance of a IList implemented with an array.
|
static <T> IList<T> |
newInstanceArray(int cap)
This method returns an instance of a IList implemented with an array that
has an initial capacity
|
static <T> IList<T> |
newInstanceDoublyLinkedList()
This method returns an instance of a IList implemented with a
doubly-linked list.
|
static <T> IList<T> |
newInstanceDoublyLinkedList(java.util.Collection<T> col)
This method returns an instance of a IList implemented with a
doubly-linked list.
|
static <T> IList<T> |
newInstanceDoublyLinkedList(IList<T> list)
This method returns an instance of a IList implemented with a
doubly-linked list.
|
static <T> IList<T> |
newInstanceLinkedList()
This method returns an instance of a IList implemented with a linked list.
|
static <T> IList<T> |
newInstanceLinkedList(java.util.Collection<T> col)
This method returns an instance of a IList implemented with a linked list.
|
static <T> IList<T> |
newInstanceLinkedList(IList<T> list)
This method returns an instance of a IList implemented with a linked list.
|
public static <T> IList<T> newInstanceArray()
T - type of element to be storedpublic static <T> IList<T> newInstanceArray(int cap)
T - type of element to be storedcap - initial capacitypublic static <T> IList<T> newInstanceArray(IList<T> list)
T - type of element to be storedlist - the list with the elementspublic static <T> IList<T> newInstanceArray(java.util.Collection<T> col)
T - type of element to be storedcol - the java.util.Collection with the elementspublic static <T> IList<T> newInstanceLinkedList()
T - type of element to be storedpublic static <T> IList<T> newInstanceLinkedList(IList<T> list)
T - type of element to be storedlist - the list with the elementspublic static <T> IList<T> newInstanceLinkedList(java.util.Collection<T> col)
T - type of element to be storedcol - the java.util.Collection with the elementspublic static <T> IList<T> newInstanceDoublyLinkedList()
T - type of element to be storedpublic static <T> IList<T> newInstanceDoublyLinkedList(IList<T> list)
T - type of element to be storedlist - the list with the elementspublic static <T> IList<T> newInstanceDoublyLinkedList(java.util.Collection<T> col)
T - type of element to be storedcol - the java.util.Collection with the elements