public class SpecialNameFactory extends java.lang.Object implements NameFactory
NameFactory generates names that are special, by appending
a suffix.| Constructor and Description |
|---|
SpecialNameFactory(NameFactory nameFactory)
Creates a new
SpecialNameFactory. |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
java.lang.String |
nextName() |
void |
reset() |
public SpecialNameFactory(NameFactory nameFactory)
SpecialNameFactory.nameFactory - the name factory from which original names will be
retrieved.public void reset()
reset in interface NameFactorypublic java.lang.String nextName()
nextName in interface NameFactorypublic static void main(java.lang.String[] args)