|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.rode.thesis.iterator.Main
public class Main
Iterator tests.
| Constructor Summary | |
|---|---|
Main()
No-arg constructor. |
|
| Method Summary | ||
|---|---|---|
private static
|
iterate(Log out,
int index,
Sequence<V> sequence,
int valuesPerLine,
boolean recurse)
Iterates over the sequence values in sequence. |
|
private static
|
iterate(Log out,
IterableSequence<V> sequence,
int valuesPerLine,
boolean recurse)
Iterates over the sequence values delivered by sequence. |
|
private static
|
iterate(Log out,
SequenceIterator<V> iterator,
int valuesPerLine,
boolean recurse)
Iterates over the sequence values delivered indirectly by iterator. |
|
static void |
main(String[] args)
Executes the Iterator tests. |
|
boolean |
test(Log out,
Arguments arguments)
Performs the specific tests and report the outcome to the log supplied as log. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
private static final <V> void iterate(Log out,
int index,
Sequence<V> sequence,
int valuesPerLine,
boolean recurse)
sequence.
V - The type of values delivered by sequence.out - The log to use; never null.index - The sequence index.sequence - The sequence; never null.valuesPerLine - Number of sequence values to log per line.recurse - True to recurse.
private static final <V> void iterate(Log out,
IterableSequence<V> sequence,
int valuesPerLine,
boolean recurse)
sequence.
V - The type of values delivered by sequence.out - The log to use; never null.sequence - The sequence; never null.valuesPerLine - Number of sequence values to log per line.recurse - True to recurse.
private static final <V> void iterate(Log out,
SequenceIterator<V> iterator,
int valuesPerLine,
boolean recurse)
iterator.
V - The type of values delivered by sequence.out - The log to use; never null.iterator - The iterator; never null.valuesPerLine - Number of sequence values to log per line.recurse - True to recurse.public static void main(String[] args)
args - The arguments to supply to test(Log, Arguments),
if any; can be null.
public boolean test(Log out,
Arguments arguments)
Testablelog supplied as log. Arguments to control log-level:
-log: a boolean value (as a string) indicating if
class logging is enabled for relevant classes.
-log.verbose: a boolean value (as a string) indicating
if class logging is enabled for relevant classes that generates
verbose output.
test in interface Testableout - The log to report the test outcome to; cannot be null.arguments - Additional arguments, if any.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||