Class OrCondition<T>

  • All Implemented Interfaces:
    Condition<T>, java.io.Serializable

    public class OrCondition<T>
    extends java.lang.Object
    implements Condition<T>
    Takes a set of sub conditions and passes if any of them passes.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean passes​(T value)
      Returns whether the provided value passes the condition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrCondition

        public OrCondition​(java.util.Collection<Condition<T>> conditions)
      • OrCondition

        public OrCondition​(Condition<T>... conditions)
    • Method Detail

      • passes

        public boolean passes​(T value)
        Description copied from interface: Condition
        Returns whether the provided value passes the condition.
        Specified by:
        passes in interface Condition<T>