Class ThreeDigitsBlock
java.lang.Object
kz.greetgo.num_translator.mappers.ThreeDigitsBlock
public class ThreeDigitsBlock
extends java.lang.Object
ThreeDigitsBlock (класс числа) - это блок из трех чисел
Input: целое число от [0 до 999]
Returns: прописной вид числа на заданном языке
-
Constructor Summary
Constructors Constructor Description ThreeDigitsBlock(int number, Language language, int position) -
Method Summary
Modifier and Type Method Description intgetBlockPosition()java.lang.StringgetDecimalInWords()intgetDecimals()intgetHundreds()java.lang.StringgetHundredsInWords()Converter without Nominal names of degrees of a thousand, переводит три цифры из блока в прописной вид, БЕЗ суффикса миллиарды, миллионы, тысячиLanguagegetLanguage()intgetNumber()java.lang.StringgetUnitInWords()intgetUnits()java.lang.StringtoWords()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ThreeDigitsBlock
-
-
Method Details
-
getNumber
public int getNumber() -
getHundreds
public int getHundreds() -
getDecimals
public int getDecimals() -
getUnits
public int getUnits() -
getBlockPosition
public int getBlockPosition() -
getHundredsInWords
public java.lang.String getHundredsInWords()Converter without Nominal names of degrees of a thousand, переводит три цифры из блока в прописной вид, БЕЗ суффикса миллиарды, миллионы, тысячи -
getDecimalInWords
public java.lang.String getDecimalInWords() -
getUnitInWords
public java.lang.String getUnitInWords() -
getLanguage
-
toWords
public java.lang.String toWords()
-