|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Queue
This class is an array implementation of the fifo queue used in SmartSolvedWeb matching.
| Constructor Summary | |
Queue(int size)
|
|
| Method Summary | |
void |
add(int value)
Adds a value to the tail of the Queue |
int |
getNext()
Gets (and removes) the value at the head of the Queue |
boolean |
isEmpty()
Checks if the Queue is empty |
void |
replace(int a,
int b)
Replaces instances of a with b in the Queue |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Queue(int size)
| Method Detail |
public boolean isEmpty()
public void add(int value)
value - the value to be addedpublic int getNext()
public void replace(int a,
int b)
a - the value to be replacedb - the value to replace a
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||