|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.efaps.number2words.Converter
public final class Converter
Main entry point to get language specific number to word converters.
Depending on the use case for what the converter will be used, the male
getMaleConverter(Locale), female or neuter static method should be
called to get the converter instance.
Example:
Male converter for German language to translate 100 to words:
final IConverter converter = Converter.getMaleConverter(Locale.GERMAN); final String text = converter.convert(100L);The result in
text is "ein hundert".
| Method Summary | |
|---|---|
static IConverter |
getMaleConverter(java.util.Locale _locale)
Returns for a language defined with _locale the related
text converter for male numbers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static IConverter getMaleConverter(java.util.Locale _locale)
_locale the related
text converter for male numbers.
_locale - locale which defines the language
_locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||