|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.efaps.number2words.converters.AbstractDecimalConverter
org.efaps.number2words.converters.English
public class English
The class implements the conversion of numbers to English words.
| Constructor Summary | |
|---|---|
English()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
convertLessThanOneHundred(int _number)
The method converts the numbers from 1 to 99 into words. |
protected java.lang.String |
getMinus()
Returns the related English word for "minus" needed for negative numbers. |
protected java.lang.String[] |
getNumNames()
Returns the string array to define the conversion of numbers for 1 till 19. |
protected java.lang.String[] |
getPowerNames()
Returns the string array for log numbers 100, 1000, 1000000 and 1000000000. |
protected java.lang.String[] |
getTensNames()
Returns the string array for the numbers 10, 20, 30, 40, 50, 60, 70, 80 and 90. |
protected java.lang.String |
getZero()
Returns the related English word for the number zero ('0'). |
boolean |
usesShortScale()
Returns always true because the English language uses for the representation of numbers in words the short scale system. |
| Methods inherited from class org.efaps.number2words.converters.AbstractDecimalConverter |
|---|
convert, convertLessThanOneThousand, convertPower, isDecimal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public English()
| Method Detail |
|---|
protected java.lang.String convertLessThanOneHundred(int _number)
AbstractDecimalConverter.convertLessThanOneThousand(int).
convertLessThanOneHundred in class AbstractDecimalConverter_number - number less than one hundred to convert
_number in wordsprotected java.lang.String[] getNumNames()
getNumNames in class AbstractDecimalConverterAbstractDecimalConverter.getNumNames(),
NUM_NAMESprotected java.lang.String[] getTensNames()
getTensNames in class AbstractDecimalConverterAbstractDecimalConverter.getTensNames(),
TENS_NAMESprotected java.lang.String[] getPowerNames()
getPowerNames in class AbstractDecimalConverterAbstractDecimalConverter.getPowerNames(),
POWER_NAMESprotected java.lang.String getZero()
getZero in class AbstractDecimalConverterprotected java.lang.String getMinus()
getMinus in class AbstractDecimalConverterpublic boolean usesShortScale()
usesShortScale in interface IConverterusesShortScale in class AbstractDecimalConverterIConverter.isDecimal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||