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

public class SetCondition<T> extends Object implements Condition<Set<T>>
This condition does set comparison. It can require that all values of the condition be present, or just any of them.
See Also:
  • Constructor Details

    • SetCondition

      public SetCondition()
    • SetCondition

      public SetCondition(Set<T> values, boolean requireAll)
  • Method Details

    • getValues

      public Set<T> getValues()
    • getRequiresAllValues

      public boolean getRequiresAllValues()
    • setRequiresAllValues

      public void setRequiresAllValues(boolean value)
      If true, requires that all defined values be present in the incoming value. If false, will pass if ANY of the defined values are present.
    • add

      public void add(T value)
    • passes

      public boolean passes(Set<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