|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectInputValidatorQueue
public class InputValidatorQueue
An input validation queue. Performs basic syntactic validation of enqueued items. Only valid items are available for dequeueing.
| Constructor Summary | |
|---|---|
InputValidatorQueue()
Construct an object of class InputValidatorQueue. |
|
| Method Summary | |
|---|---|
java.lang.String |
dequeue()
Dequeue an item if any exists in the queue. |
boolean |
enqueue(java.util.List<java.lang.String> inputStringList)
Attempt to enqueue a list of strings. Post-Conditions: All valid strings in the list are enqueued; no invalid strings are enqueued |
boolean |
enqueue(java.lang.String inputString)
Attempt to enqueue a string. |
boolean |
isEmpty()
Tests if this queue is empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputValidatorQueue()
| Method Detail |
|---|
public boolean enqueue(java.lang.String inputString)
inputString - the item to be enqueued
true if the item was valid and thus enqueued; false otherwisepublic boolean enqueue(java.util.List<java.lang.String> inputStringList)
inputStringList - the list of strings to be enqueued
true if all items in the list are valid; false if at least one item is not validpublic java.lang.String dequeue()
EmptyQueueException - if this queue is empty
public boolean isEmpty()
true if this queue contains no items; false otherwise
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||