com.antelmann.util
Class ComboFilter<T>
java.lang.Object
com.antelmann.util.ComboFilter<T>
- All Implemented Interfaces:
- Filter<T>
public class ComboFilter<T>
- extends Object
- implements Filter<T>
a special filter that allows to combine different filters.
- Since:
- 15.12.2010, 02:07:28
- Author:
- Holger Antelmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboFilter
public ComboFilter(Filter<? super T> f1,
Filter<? super T> f2,
BooleanOperator operator)
create
public static <T> ComboFilter<T> create(Filter<? super T> f1,
Filter<? super T> f2,
BooleanOperator operator)
negate
public static <T> ComboFilter<T> negate(Filter<? super T> filter)
- see
Misc.reverseFilter(Filter)
getFilter1
public Filter<? super T> getFilter1()
setFilter1
public void setFilter1(Filter<? super T> f1)
getFilter2
public Filter<? super T> getFilter2()
setFilter2
public void setFilter2(Filter<? super T> f2)
getOperator
public BooleanOperator getOperator()
setOperator
public void setOperator(BooleanOperator operator)
accept
public boolean accept(T entry)
- Description copied from interface:
Filter
- returns true only if the given entry is accepted by this filter
- Specified by:
accept in interface Filter<T>
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads