Class CommandCondition

  • All Implemented Interfaces:
    ICondition

    public class CommandCondition
    extends java.lang.Object
    implements ICondition
    Command version of the condition.
    • Constructor Detail

      • CommandCondition

        public CommandCondition​(IResultCommand<java.lang.Boolean,​IEvent> command)
    • Method Detail

      • evaluate

        public IFuture<Tuple2<java.lang.Boolean,​java.lang.Object>> evaluate​(IEvent event)
        Description copied from interface: ICondition
        Evaluation the condition.
        Specified by:
        evaluate in interface ICondition
        Parameters:
        event - The event.
        Returns:
        True, if condition is met (plus additional user data).
      • evaluateResult

        public static IFuture<Tuple2<java.lang.Boolean,​java.lang.Object>> evaluateResult​(java.lang.Object res)