java.lang.Object
com.inductiveautomation.ignition.common.tags.query.conditions.AnyOfCondition<T>
All Implemented Interfaces:
Condition<T>, Serializable

public class AnyOfCondition<T> extends Object implements Condition<T>
A condition where any value contained in a set will pass. Does not support null values in the target set. In a situation where more than one value must be matched, the SetCondition can be used.
See Also:
  • Constructor Details

    • AnyOfCondition

      public AnyOfCondition()
    • AnyOfCondition

      public AnyOfCondition(Set<T> values)
  • Method Details

    • getAllowedValues

      public Set<T> getAllowedValues()
    • add

      public void add(T id)
    • 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>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object