net.sf.mmm.util.filter.base
Class ConjunctionCharFilter
java.lang.Object
net.sf.mmm.util.filter.base.ConjunctionCharFilter
- All Implemented Interfaces:
- CharFilter
public class ConjunctionCharFilter
- extends Object
- implements CharFilter
This is an implementation of the CharFilter interface that combines a
given list of filters using a boolean Conjunction.
- Since:
- 2.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
|
Method Summary |
boolean |
accept(char c)
This method determines if the given character c should be
accepted. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filterList
private final CharFilter[] filterList
- the filters to check.
conjunction
private final Conjunction conjunction
- The boolean conjunction.
ConjunctionCharFilter
public ConjunctionCharFilter(Conjunction conjunction,
CharFilter... filters)
- The constructor.
- Parameters:
conjunction - is the Conjunction used to combine the
filters.filters - are the filters to combine.
accept
public boolean accept(char c)
- This method determines if the given character
c should be
accepted.
- Specified by:
accept in interface CharFilter
- Parameters:
c - is the character to check.
- Returns:
true if the given character c is
acceptable, false if it should be filtered.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.