Class Machine.MachineWithState

  • All Implemented Interfaces:
    java.util.function.Predicate<Machine>
    Enclosing class:
    Machine

    public static class Machine.MachineWithState
    extends java.lang.Object
    implements java.util.function.Predicate<Machine>
    A Predicate that returns true when passed a Machine in a given MachineState.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(Machine machine)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • MachineWithState

        public MachineWithState​(MachineState state)
    • Method Detail

      • test

        public boolean test​(Machine machine)
        Specified by:
        test in interface java.util.function.Predicate<Machine>