de.jaetzold.util
Class LinkedStateDecider
java.lang.Object
|
+--de.jaetzold.util.LinkedStateDecider
- All Implemented Interfaces:
- StateDecider
- Direct Known Subclasses:
- StateDeciderLinkedStateDecider, StateLinkedStateDecider, ValueLinkedStateDecider
- public abstract class LinkedStateDecider
- extends Object
- implements StateDecider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
first
protected StateDecider first
second
protected StateDecider second
LinkedStateDecider
public LinkedStateDecider()
LinkedStateDecider
public LinkedStateDecider(StateDecider first,
StateDecider second)
isCacheable
public boolean isCacheable()
- Description copied from interface:
StateDecider
- Tells whether this instance will in the future produce the same state for the same value argument, independent of the actualState.
This can be false first and then true at a later time, but it is not legal to return false here after a return of true in the past, because the true answer before was wrong then.
- Specified by:
isCacheable
in interface StateDecider
- Following copied from interface:
de.jaetzold.util.StateDecider
- Returns:
- true if this instance guarantees, that any further call to nextStateValue() with the same value-argument returns the same state
getFirstDecider
public StateDecider getFirstDecider()
getSecondDecider
public StateDecider getSecondDecider()
setFirstDecider
public void setFirstDecider(StateDecider first)
throws PropertyVetoException
setSecondDecider
public void setSecondDecider(StateDecider second)
throws PropertyVetoException