Package org.apache.commons.text
Interface CharacterPredicate
- All Known Implementing Classes:
CharacterPredicates
public interface CharacterPredicate
A predicate for selecting code points. Implementations of this interface must
be thread safe.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleantest(int codePoint) Tests the code point with this predicate.
-
Method Details
-
test
Tests the code point with this predicate.- Parameters:
codePoint- the code point to test- Returns:
trueif the code point matches the predicate,falseotherwise- Since:
- 1.0
-