com.jidesoft.filter
Class NotInFilter<T>
java.lang.Object
com.jidesoft.filter.AbstractFilter<T>
com.jidesoft.filter.InFilter<T>
com.jidesoft.filter.NotInFilter<T>
- All Implemented Interfaces:
- Filter<T>, ObjectGrouperSupport, SqlFilterSupport, Serializable, Cloneable
public class NotInFilter<T>
- extends InFilter<T>
A Filter
returns false in isValueFiltered(Object)
only if the input value is not in a
collection of the specified values.
- See Also:
- Serialized Form
Methods inherited from class com.jidesoft.filter.AbstractFilter |
addFilterListener, clone, fireFilterChanged, fireFilterContentChanged, fireFilterDisabled, fireFilterEnabled, fireFilterNameChanged, getConditionString, getFilterFactory, getFilterFactoryName, getFilterListeners, getObjectGrouper, getObjectGrouperName, isEnabled, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setObjectGrouper, setObjectGrouperName |
NotInFilter
public NotInFilter()
NotInFilter
public NotInFilter(T[] values)
NotInFilter
public NotInFilter(String name,
T[] values)
isValueFiltered
public boolean isValueFiltered(T value)
- Description copied from interface:
Filter
- Checks to see if the value should be filtered.
- Specified by:
isValueFiltered
in interface Filter<T>
- Overrides:
isValueFiltered
in class InFilter<T>
- Parameters:
value
- the value to filter
- Returns:
- true if the value should be filtered. Otherwise false.
getOperator
public String getOperator()
- Gets the operator. It will return " NOT IN " by default.
- Specified by:
getOperator
in interface SqlFilterSupport
- Overrides:
getOperator
in class InFilter<T>
- Returns:
- the operator.
stricterThan
public boolean stricterThan(Filter inputFilter)
- Check if this filter is stricter than the input filter while the two filters are with the same class.
- Specified by:
stricterThan
in interface Filter<T>
- Overrides:
stricterThan
in class InFilter<T>
- Parameters:
inputFilter
- the input filter
- Returns:
- true if all the possible values contained in the input filter are also contained in this filter.
Otherwise false.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class InFilter<T>