com.jidesoft.filter
Class NotFilter
java.lang.Object
com.jidesoft.filter.AbstractFilter
com.jidesoft.filter.NotFilter
- All Implemented Interfaces:
- Filter, Serializable, Cloneable
public class NotFilter
- extends AbstractFilter
This filter will return the opposite value from isValueFiltered(Object) method from the filter it contains.
In the other word, it is a NOT logic.
- See Also:
- Serialized Form
| Methods inherited from class com.jidesoft.filter.AbstractFilter |
addFilterListener, fireFilterChanged, fireFilterContentChanged, fireFilterDisabled, fireFilterEnabled, fireFilterNameChanged, getConditionString, getFilterFactory, getFilterFactoryName, getFilterListeners, getName, isEnabled, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName |
NotFilter
public NotFilter(Filter filter)
isValueFiltered
public boolean isValueFiltered(Object value)
- Description copied from interface:
Filter
- Checks to see if the value should be filtered.
- Parameters:
value - the value to filter
- Returns:
- true if the value should be filtered. Otherwise false.
getFilter
public Filter getFilter()
setFilter
public void setFilter(Filter filter)
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- Overrides:
stricterThan in class AbstractFilter
- Parameters:
inputFilter - the input filter
- Returns:
- true if the filter in input filter stricter than the filter in this filter. Otherwise false.
clone
public Object clone()
throws CloneNotSupportedException
- Description copied from class:
AbstractFilter
- Creates and returns a copy of the filter.
- Specified by:
clone in interface Filter- Overrides:
clone in class AbstractFilter
- Returns:
- a cloned copy of the filter.
- Throws:
CloneNotSupportedException - if the cloning of the filter is not supported.
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object