Class IsSaveable

java.lang.Object
org.oddjob.state.IsSaveable
All Implemented Interfaces:
Predicate<State>, StateCondition

public class IsSaveable extends Object implements StateCondition
The StateConditions that is always true.

Should this throw an IllegalStateException if the condition is DESTROYED?

Author:
rob
See Also:
  • Constructor Details

    • IsSaveable

      public IsSaveable()
  • Method Details

    • state

      public static boolean state(State state)
    • test

      public boolean test(State state)
      Description copied from interface: StateCondition
      Tests the condition of the state.
      Specified by:
      test in interface Predicate<State>
      Specified by:
      test in interface StateCondition
      Parameters:
      state - The state.
      Returns:
      true if the state matches the condition, false otherwise.