public interface CharFilter
decides if a given character is acceptable or
should be filtered. CharSequenceScanner and avoids conversion of
char to Character for performance reasons. In other cases please prefer to use
Filter.| Modifier and Type | Field and Description |
|---|---|
static CharFilter |
ACCEPT_ALL_FILTER
A filter that
accepts any charater. |
static CharFilter |
ASCII_LETTER_FILTER
A filter that only
accepts the Latin ASCII letters 'a'-'z' and 'A'-'Z'. |
static CharFilter |
ASCII_LOWER_CASE_LETTER_FILTER
A filter that only
accepts the lower case Latin ASCII letters 'a'-'z'. |
static CharFilter |
ASCII_UPPER_CASE_LETTER_FILTER
A filter that only
accepts the upper case Latin ASCII letters 'A'-'Z'. |
static CharFilter |
FILE_SEPARATOR_FILTER
A filter that only
accepts the file separator characters '/' and '\\'. |
static CharFilter |
IDENTIFIER_FILTER
A filter that only
accepts characters valid for a technical identifier-string (e.g. |
static CharFilter |
LATIN_DIGIT_FILTER
A filter that only
accepts the Latin digits '0'-'9'. |
static CharFilter |
LATIN_DIGIT_OR_LETTER_FILTER
A filter that only
accepts the Latin digits '0'-'9' or ASCII letters 'a'-'z' and
'A'-'Z'. |
static CharFilter |
WHITESPACE_FILTER
A filter that
accepts only whitespaces. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(char c)
This method determines if the given character
c should be accepted. |
static final CharFilter IDENTIFIER_FILTER
accepts characters valid for a technical identifier-string (e.g.
literal oder variable-name). This means accepted characters are Latin digits, ASCII letters or one of
'.', '_' or '-'.static final CharFilter LATIN_DIGIT_OR_LETTER_FILTER
accepts the Latin digits '0'-'9' or ASCII letters 'a'-'z' and
'A'-'Z'.static final CharFilter LATIN_DIGIT_FILTER
accepts the Latin digits '0'-'9'.static final CharFilter ASCII_LETTER_FILTER
accepts the Latin ASCII letters 'a'-'z' and 'A'-'Z'.static final CharFilter ASCII_LOWER_CASE_LETTER_FILTER
accepts the lower case Latin ASCII letters 'a'-'z'.static final CharFilter ASCII_UPPER_CASE_LETTER_FILTER
accepts the upper case Latin ASCII letters 'A'-'Z'.static final CharFilter WHITESPACE_FILTER
accepts only whitespaces.static final CharFilter ACCEPT_ALL_FILTER
accepts any charater.static final CharFilter FILE_SEPARATOR_FILTER
accepts the file separator characters '/' and '\\'.Copyright © 2001–2015 mmm-Team. All rights reserved.