|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jga.fn.Generator<R>
public abstract class Generator<R>
Functor that takes no arguments and produces a single result. The result is not guaranteed to be the same each time the functor is called.
Copyright © 2004 David A. Hall
| Constructor Summary | |
|---|---|
Generator()
|
|
| Method Summary | |
|---|---|
void |
accept(Visitor v)
No-op implementation of Visitable interface. |
abstract R |
gen()
Generate one instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Generator()
| Method Detail |
|---|
public abstract R gen()
public void accept(Visitor v)
accept in interface Visitable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||