This content has been marked as final.
Show 4 replies
-
1. Re: ControllerStates helper/util
adrian.brock Apr 8, 2008 6:04 AM (in response to alesj)No. If you're going to make it part of the spi, then make it usuable and future proof.
e.g.public interface Controller { ControllerState getPreviousState(ControllerState state); ControllerState getNextState(ControllerState state); boolean isAfterState(ControllerState state, ControllerState reference); }
The array/index is just an implementation detail. Don't expose implementation details! -
2. Re: ControllerStates helper/util
alesj Apr 8, 2008 6:45 AM (in response to alesj)"adrian@jboss.org" wrote:
public interface Controller { boolean isAfterState(ControllerState state, ControllerState reference); }
Which one here is the marker (against whom we check)? -
3. Re: ControllerStates helper/util
alesj Apr 8, 2008 7:00 AM (in response to alesj)"alesj" wrote:
"adrian@jboss.org" wrote:
public interface Controller { boolean isAfterState(ControllerState state, ControllerState reference); }
Which one here is the marker (against whom we check)?
reference == marker
state == the one we're checking -
4. Re: ControllerStates helper/util
alesj Apr 8, 2008 11:45 AM (in response to alesj)I also need ListIterator, to start iterating from the end.