Class CharacterMapper
java.lang.Object
org.applecommander.ui.CharacterMapper
CharacterMapper utility class that is used to convert an input string into a set of
valid characters. This can handle both lower-case to upper-case mappings and
restricting input characters or doing things like mapping a ' ' to a '.'.
Example usage:
CharacterMapper hex = CharacterMapper.builder()
.mapRange('a', 'f', true)
.mapRange('A', 'F', false)
.mapRange('0', '9', false)
.map('$', '$')
.build();
System.out.println(hex.map(">>> $12af <<<"));
... yields a $12AF output.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
map
-
builder
-