org.omnaest.utils.structure.element.filter
Class ExcludingElementFilter<E>

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omnaest.utils.structure.element.filter.ElementFilter
ElementFilter.FilterMode
 
Constructor Summary
ExcludingElementFilter()
           
 
Method Summary
abstract  boolean filter(E element)
          The filter method should return true if the given element should be excluded
 ElementFilter.FilterMode getFilterMode()
          Returns the ElementFilter.FilterMode in which the filter acts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcludingElementFilter

public ExcludingElementFilter()
Method Detail

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.