final class CharacterMappper extends Object
Modifier and Type | Field and Description |
---|---|
private static Map<String,String> |
MAPPING
Holds the mapping.
|
private Validator |
validator
Validates input.
|
Constructor and Description |
---|
CharacterMappper() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
knowsCharacter(String ch)
Whether the maps know the character to mapCharacter.
|
(package private) String |
mapCharacter(String ch)
Maps a given character.
|
private final Validator validator
boolean knowsCharacter(String ch)
ch
- must not be null
true
if known, else false
String mapCharacter(String ch)
Throws an IllegalArgumentException
if the given character
is not knwon
.
ch
- must not be null
null
Copyright © 2012 Sven Strittmatter. All Rights Reserved.