michaelinux / mini-java

Automatically exported from code.google.com/p/mini-java
0 stars 0 forks source link

make FiniteAutomaton immutable #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
FiniteAutomaton should be immutable. Users should have no reason to alter
its structure after it has been constructed. So methods like
addTransition() should be hidden from normal users. Only FiniteAutomaton's
creators or builders should be able to add transitions to it.

Check out the design patterns to find out some suitable patterns to cover
this issue.

Original issue reported on code.google.com by lemontree.cool on 24 Aug 2008 at 2:26

GoogleCodeExporter commented 9 years ago
Java builder pattern is used.

Original comment by lemontree.cool on 27 Aug 2008 at 3:03