public class QueueFactory
extends java.lang.Object
Constructor and Description |
---|
QueueFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> IQueue<T> |
newInstanceQueue()
This method returns an instance of a IQueue implemented with a linked list
|
static <T> IQueue<T> |
newInstanceQueueArray(int cap)
This method returns an instance of a IQueue implemented with a circular
array
|
public static <T> IQueue<T> newInstanceQueue()
T
- type of element to be storedpublic static <T> IQueue<T> newInstanceQueueArray(int cap)
T
- type of element to be storedcap
- the capacity