JIDE 3.5.15

com.jidesoft.filter
Class NotInFilter<T>

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter<T>
      extended by com.jidesoft.filter.InFilter<T>
          extended by 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

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
NotInFilter()
           
NotInFilter(String name, T[] values)
           
NotInFilter(T[] values)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getOperator()
          Gets the operator.
 boolean isValueFiltered(T value)
          Checks to see if the value should be filtered.
 boolean stricterThan(Filter inputFilter)
          Check if this filter is stricter than the input filter while the two filters are with the same class.
 
Methods inherited from class com.jidesoft.filter.InFilter
getName, getPreference, getValues, isFilterValid, setPreference, setValues
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotInFilter

public NotInFilter()

NotInFilter

public NotInFilter(T[] values)

NotInFilter

public NotInFilter(String name,
                   T[] values)
Method Detail

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>

JIDE 3.5.15