public class MPQFactory
extends java.lang.Object
Constructor and Description |
---|
MPQFactory() |
Modifier and Type | Method and Description |
---|---|
static <T extends ComparableModifiable<T,V>,V> |
newInstanceMPQM()
This method returns an instance of IMPQ
|
static <T extends ComparableModifiable<T,V>,V> |
newInstanceMPQM(int cap)
This method returns an instance of IMPQ with an initial capacity
|
public static <T extends ComparableModifiable<T,V>,V> IMPQ<T,V> newInstanceMPQM()
T
- type of element to be storedV
- type of priority element, or type of element to obtain the
prioritypublic static <T extends ComparableModifiable<T,V>,V> IMPQ<T,V> newInstanceMPQM(int cap)
T
- type of element to be storedV
- type of priority element, or type of element to obtain the
prioritycap
- initial capacity