Say I had 100 possible nodes in my onStart method:
Collections.addAll(
nodes,
new nodeOne(this),
new NodeTwo(this),
new nodeThree(this),
new nodeFour(this),
etc... up to 100
Won't it take a long time to go through all these nodes?
Is there a better way to sort the nodes?
E,g say 5 of the nodes were involved in separate stages of a banking method, would it be better to have one Banking class and then putting the others into states?