DATATYPE - The type of object to filter.@NotThreadSafe public abstract class AbstractSerializableFilter<DATATYPE> extends Object implements ISerializableFilter<DATATYPE>
ISerializableFilter that has an
optional nested filter.| Constructor and Description |
|---|
AbstractSerializableFilter() |
AbstractSerializableFilter(ISerializableFilter<DATATYPE> aCustomFilter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ISerializableFilter<DATATYPE> |
getNestedFilter() |
int |
hashCode() |
boolean |
matchesFilter(DATATYPE aValue)
Check if the given value matches the filter or not.
|
protected abstract boolean |
matchesThisFilter(DATATYPE aValue)
This is the method to be implemented to match this filter.
|
String |
toString() |
public AbstractSerializableFilter()
public AbstractSerializableFilter(@Nullable ISerializableFilter<DATATYPE> aCustomFilter)
protected abstract boolean matchesThisFilter(DATATYPE aValue)
aValue - The value to be matchedtrue if the value matches the filterpublic final boolean matchesFilter(DATATYPE aValue)
IFiltermatchesFilter in interface IFilter<DATATYPE>aValue - The object to filter. May be null depending on the
implementation.true if the object match the filter,
false otherwise.@Nullable public ISerializableFilter<DATATYPE> getNestedFilter()
null.Copyright © 2006–2014 phloc systems. All rights reserved.