Class AbstractFilter<T>
java.lang.Object
com.inductiveautomation.ignition.common.search.AbstractFilter<T>
- Type Parameters:
T
- The type of object that gets filtered
- All Implemented Interfaces:
Condition<T>
,Filter<T>
,Serializable
- Direct Known Subclasses:
PropertySetFilter
The base implementation of a filter. A filter, simply put, is a group of conditions that operate against a type T. It
can answer "does this T value match our conditions".
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<F extends AbstractFilter<T>,
V, C extends Condition<V>>
F<V,
C extends Condition<V>>
CgetConditionFor
(Field<T, V, C> field) Returns the condition for the field, or null if it doesn't exist.boolean
hasConditionFor
(Field<T, ?, ?> field) Returns whether the filter has a condition for the field.protected void
logCondition
(Condition<?> c, Object value, boolean passed) Can be overridden to log success/failure conditions.boolean
Returns whether the provided value passes the condition.toString()
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
passes
Description copied from interface:Condition
Returns whether the provided value passes the condition. -
hasConditionFor
Description copied from interface:Filter
Returns whether the filter has a condition for the field.- Specified by:
hasConditionFor
in interfaceFilter<T>
-
getConditionFor
Description copied from interface:Filter
Returns the condition for the field, or null if it doesn't exist.- Specified by:
getConditionFor
in interfaceFilter<T>
-
and
public <F extends AbstractFilter<T>,V, F andC extends Condition<V>> (Field<T, V, C> field, C condition) -
logCondition
Can be overridden to log success/failure conditions. -
toString
-