Package org.jeasy.random.util
Class CharacterUtils
java.lang.Object
org.jeasy.random.util.CharacterUtils
Character utility methods.
This class is intended for internal use only.
- Author:
- Pascal Schumacher (https://github.com/PascalSchumacher)
-
Method Summary
Modifier and TypeMethodDescriptioncollectPrintableCharactersOf
(Charset charset) Returns a list of all printable charaters of the given charset.filterLetters
(List<Character> characters) Keep only letters from a list of characters.
-
Method Details
-
collectPrintableCharactersOf
Returns a list of all printable charaters of the given charset.- Parameters:
charset
- Charset to use- Returns:
- list of printable characters
-
filterLetters
Keep only letters from a list of characters.- Parameters:
characters
- to filter- Returns:
- only letters
-