public class StackFactory
extends java.lang.Object
| Constructor and Description |
|---|
StackFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> IStack<T> |
newInstanceStack()
This method returns an instance of a IStack implemented with a
doubly-linked list.
|
static <T> IStack<T> |
newInstanceStackArray()
This method returns an instance of a IStack implemented with an array.
|
public static <T> IStack<T> newInstanceStack()
T - type of element to be storedpublic static <T> IStack<T> newInstanceStackArray()
T - type of element to be stored