final class LanguageCharacterMapper extends Object
Modifier and Type | Field and Description |
---|---|
private static Language |
DEFAULT
Default language.
|
private static Map<Language,Map<String,String>> |
MAPPING
Holds the mapping.
|
private Validator |
validator
Input validator.
|
Constructor and Description |
---|
LanguageCharacterMapper() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
knowsCharacter(Language lang,
String ch)
Tells if there is a mapping for a particular language.
|
(package private) String |
mapCharacter(Language lang,
String ch)
Maps given character for a particular language.
|
private static final Language DEFAULT
private final Validator validator
boolean knowsCharacter(Language lang, String ch)
lang
- must not be null
ch
- you want to map, must not be null
or emptytrue
if the given character has a mapping, else false
String mapCharacter(Language lang, String ch)
Throws an IllegalArgumentException
if there is no mapping
.
lang
- must not be null
ch
- you want to map, must not be null
or emptynull
Copyright © 2012 Sven Strittmatter. All Rights Reserved.