public class ConjunctionCharFilter extends Object implements CharFilter
CharFilter
interface that combines a given list of filters using a
boolean Conjunction
.Modifier and Type | Field and Description |
---|---|
private Conjunction |
conjunction
The boolean conjunction.
|
private CharFilter[] |
filterList
the filters to check.
|
ACCEPT_ALL_FILTER, ASCII_LETTER_FILTER, ASCII_LOWER_CASE_LETTER_FILTER, ASCII_UPPER_CASE_LETTER_FILTER, IDENTIFIER_FILTER, LATIN_DIGIT_FILTER, LATIN_DIGIT_OR_LETTER_FILTER, WHITESPACE_FILTER
Constructor and Description |
---|
ConjunctionCharFilter(Conjunction conjunction,
CharFilter... filters)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(char c)
This method determines if the given character
c should be accepted. |
private final CharFilter[] filterList
private final Conjunction conjunction
public ConjunctionCharFilter(Conjunction conjunction, CharFilter... filters)
conjunction
- is the Conjunction
used to combine the filters
.filters
- are the filters to combine.public boolean accept(char c)
c
should be accepted.accept
in interface CharFilter
c
- is the character to check.true
if the given character c
is acceptable, false
if it
should be filtered.Copyright © 2001–2014 mmm-Team. All rights reserved.