Package io.github.krandom.util
Class CharacterUtils
-
- All Implemented Interfaces:
public final class CharacterUtils
Character utility methods.
This class is intended for internal use only.
Pascal Schumacher (https://github.com/PascalSchumacher)
-
-
Method Summary
Modifier and Type Method Description static List<Character>
collectPrintableCharactersOf(Charset charset)
Returns a list of all printable charaters of the given charset. static List<Character>
filterLetters(List<Character> characters)
Keep only letters from a list of characters. -
-
Method Detail
-
collectPrintableCharactersOf
static List<Character> collectPrintableCharactersOf(Charset charset)
Returns a list of all printable charaters of the given charset.
- Parameters:
charset
- Charset to use- Returns:
list of printable characters
-
filterLetters
static List<Character> filterLetters(List<Character> characters)
Keep only letters from a list of characters.
- Parameters:
characters
- to filter- Returns:
only letters
-
-
-
-