Package ru.bgcrm.util

Class NumberToText


  • public class NumberToText
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NumberToText()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.String getS1​(int n, int gender)  
      protected static java.lang.String getS10​(int n)  
      protected static java.lang.String getS100​(int n)  
      protected static java.lang.String getS11​(int n)  
      protected static java.lang.String getUnit​(int idx, long cnt)  
      protected static int getUnitGender​(int idx)  
      static java.lang.String numberToString​(java.lang.Number num)  
      protected static java.lang.String triadToString​(int n, int gender, boolean acceptZero)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NumberToText

        public NumberToText()
    • Method Detail

      • getS1

        protected static java.lang.String getS1​(int n,
                                                int gender)
      • getS11

        protected static java.lang.String getS11​(int n)
      • getS10

        protected static java.lang.String getS10​(int n)
      • getS100

        protected static java.lang.String getS100​(int n)
      • getUnitGender

        protected static int getUnitGender​(int idx)
      • getUnit

        protected static java.lang.String getUnit​(int idx,
                                                  long cnt)
      • triadToString

        protected static java.lang.String triadToString​(int n,
                                                        int gender,
                                                        boolean acceptZero)
      • numberToString

        public static java.lang.String numberToString​(java.lang.Number num)