final class SymbolMapper extends Object
Modifier and Type | Field and Description |
---|---|
private static Map<Language,Map<String,String>> |
MAPPING
Holds the mapping.
|
private Validator |
validator
Validates input.
|
Constructor and Description |
---|
SymbolMapper() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
knowsSymbol(Language language,
String symbol)
Whether the mapper knows the given symbol to map for particular language.
|
(package private) String |
mapSymbol(Language language,
String symbol)
Maps the given symbol to map for particular language.
|
private final Validator validator
boolean knowsSymbol(Language language, String symbol)
language
- must not be null
symbol
- must not be null
true
if known, else false
String mapSymbol(Language language, String symbol)
Throws IllegalArgumentException
if given symbol is not known
.
language
- must not be null
symbol
- must not be null
null
Copyright © 2012 Sven Strittmatter. All Rights Reserved.