|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrac.ALRSRACFactory<T>
rac.PQComparatorRACFactory<T>
public class PQComparatorRACFactory<T extends java.lang.Comparable<T>>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class rac.ALRSRACFactory |
|---|
ALRSRACFactory.LRSRAContainer<T> |
| Field Summary | |
|---|---|
private java.util.Comparator<T> |
_comp
|
| Constructor Summary | |
|---|---|
PQComparatorRACFactory()
Used when the items in the container are Comparable objects. |
|
PQComparatorRACFactory(java.util.Comparator<T> comp)
Used when we want to prioritize the items according to a given Comparator. |
|
| Method Summary | |
|---|---|
IRAContainer<T> |
makeRAC()
Create a container that returns the item with the highest priority according to a given Comparator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Comparator<T extends java.lang.Comparable<T>> _comp
| Constructor Detail |
|---|
public PQComparatorRACFactory()
public PQComparatorRACFactory(java.util.Comparator<T> comp)
comp - the item that is smallest according to comp has the highest
priority.| Method Detail |
|---|
public IRAContainer<T> makeRAC()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||