/** * Returns a {@link Predicate} that returns <code>true</code> when passed a * {@link Machine} that has been allocated from the underlying * infrastructure (machine state {@link MachineState#REQUESTED}, * {@link MachineState#PENDING} or {@link MachineState#RUNNING}). * * @return */ public static Predicate<Machine> isAllocated() { return new AllocatedMachinePredicate(); }