JIDE 3.5.15

com.jidesoft.filter
Class NotEqualFilter<T>

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter<T>
      extended by com.jidesoft.filter.EqualFilter<T>
          extended by com.jidesoft.filter.NotEqualFilter<T>
All Implemented Interfaces:
Filter<T>, ObjectGrouperSupport, SqlFilterSupport, Serializable, Cloneable

public class NotEqualFilter<T>
extends EqualFilter<T>

A Filter returns false in isValueFiltered(Object) only if the input value not equal to the specified value.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.filter.EqualFilter
_value
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
NotEqualFilter()
           
NotEqualFilter(String name, T value)
           
NotEqualFilter(T value)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getOperator()
           
 boolean isValueFiltered(T value)
          Checks if the value is allowed.
 
Methods inherited from class com.jidesoft.filter.EqualFilter
getName, getPreference, getValue, setPreference, setValue, stricterThan
 
Methods inherited from class com.jidesoft.filter.AbstractFilter
addFilterListener, clone, fireFilterChanged, fireFilterContentChanged, fireFilterDisabled, fireFilterEnabled, fireFilterNameChanged, getConditionString, getFilterFactory, getFilterFactoryName, getFilterListeners, getObjectGrouper, getObjectGrouperName, isEnabled, isFilterValid, 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

NotEqualFilter

public NotEqualFilter()

NotEqualFilter

public NotEqualFilter(T value)

NotEqualFilter

public NotEqualFilter(String name,
                      T value)
Method Detail

isValueFiltered

public boolean isValueFiltered(T value)
Description copied from class: EqualFilter
Checks if the value is allowed.

Specified by:
isValueFiltered in interface Filter<T>
Overrides:
isValueFiltered in class EqualFilter<T>
Parameters:
value - the value to check.
Returns:
true if not allowed and false if allowed. Please note, this could be the opposite of what you thought as the method name is if the value is filtered.

getOperator

public String getOperator()
Specified by:
getOperator in interface SqlFilterSupport
Overrides:
getOperator in class EqualFilter<T>

equals

public boolean equals(Object obj)
Overrides:
equals in class EqualFilter<T>

JIDE 3.5.15