com.jidesoft.filter
Class NotBetweenFilter<T>
java.lang.Object
com.jidesoft.filter.AbstractFilter<T>
com.jidesoft.filter.BetweenFilter<T>
com.jidesoft.filter.NotBetweenFilter<T>
- All Implemented Interfaces:
- Filter<T>, ObjectGrouperSupport, SqlFilterSupport, Serializable, Cloneable
public class NotBetweenFilter<T>
- extends BetweenFilter<T>
A Filter
returns false in isValueFiltered(Object)
only if the input value is not between the
two 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, getName, getObjectGrouper, getObjectGrouperName, isEnabled, isFilterValid, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setObjectGrouper, setObjectGrouperName |
NotBetweenFilter
public NotBetweenFilter()
NotBetweenFilter
public NotBetweenFilter(T value1,
T value2)
NotBetweenFilter
public NotBetweenFilter(String name,
T value1,
T value2)
isValueFiltered
public boolean isValueFiltered(T value)
- Description copied from class:
BetweenFilter
- Checks if the value is allowed.
- Specified by:
isValueFiltered
in interface Filter<T>
- Overrides:
isValueFiltered
in class BetweenFilter<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()
- Gets the operator. It will return " NOT BETWEEN " by default.
- Specified by:
getOperator
in interface SqlFilterSupport
- Overrides:
getOperator
in class BetweenFilter<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 BetweenFilter<T>
- Parameters:
inputFilter
- the input filter
- Returns:
- true if the range of this filter is larger than the input filter. Otherwise false.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class BetweenFilter<T>