Package io.github.krandom.util
Object CharacterUtils
-
- All Implemented Interfaces:
public class CharacterUtils
Character utility methods.
This class is intended for internal use only.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CharacterUtils
INSTANCE
-
Method Summary
Modifier and Type Method Description final static List<Character>
collectPrintableCharactersOf(Charset charset)
Returns a list of all printable charaters of the given charset. final static List<Character>
filterLetters(List<Character> characters)
Keep only letters from a list of characters. -
-
Method Detail
-
collectPrintableCharactersOf
final 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
final static List<Character> filterLetters(List<Character> characters)
Keep only letters from a list of characters.
- Parameters:
characters
- to filter- Returns:
only letters
-
-
-
-