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 Type Method Description boolean
test(int codePoint)
Tests the code point with this predicate.
-
Method Details
-
test
boolean test(int codePoint)Tests the code point with this predicate.- Parameters:
codePoint
- the code point to test- Returns:
true
if the code point matches the predicate,false
otherwise- Since:
- 1.0
-