org.omnaest.utils.structure.element.filter
Class ExcludingElementFilter<E>
java.lang.Object
org.omnaest.utils.structure.element.filter.ExcludingElementFilter<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- ElementFilter<E>
- Direct Known Subclasses:
- ElementFilterNotBlank, ExcludingElementFilterConstant, ExcludingElementFilterNotNull
public abstract class ExcludingElementFilter<E>
- extends Object
- implements ElementFilter<E>
Abstract implementation of the ElementFilter which returns ElementFilter.FilterMode.EXCLUDING for the
getFilterMode() method
- Author:
- Omnaest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExcludingElementFilter
public ExcludingElementFilter()
filter
public abstract boolean filter(E element)
- The filter method should return true if the given element should be excluded
- Specified by:
filter in interface ElementFilter<E>
- Parameters:
element -
- Returns:
- See Also:
ElementFilter.filter(Object)
getFilterMode
public ElementFilter.FilterMode getFilterMode()
- Description copied from interface:
ElementFilter
- Returns the
ElementFilter.FilterMode in which the filter acts. This can be ElementFilter.FilterMode.EXCLUDING or
ElementFilter.FilterMode.INCLUDING
- Specified by:
getFilterMode in interface ElementFilter<E>
- Returns:
ElementFilter.FilterMode
Copyright © 2013. All Rights Reserved.