Class NumberConverter.SpanishNumberAsWordFormatter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int caseType  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer[] format​(long number, int one, int letterValue, java.lang.String features, java.lang.String language, java.lang.String country)
      Format number with special numeral system.
      private java.util.List<java.lang.String> formatOnesInThousand​(java.util.List<java.lang.String> wl, int number)  
      • Methods inherited from class java.lang.Object

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

      • caseType

        private int caseType
    • Constructor Detail

      • SpanishNumberAsWordFormatter

        SpanishNumberAsWordFormatter​(int caseType)
    • Method Detail

      • format

        public java.lang.Integer[] format​(long number,
                                          int one,
                                          int letterValue,
                                          java.lang.String features,
                                          java.lang.String language,
                                          java.lang.String country)
        Description copied from interface: NumberConverter.SpecialNumberFormatter
        Format number with special numeral system.
        Specified by:
        format in interface NumberConverter.SpecialNumberFormatter
        Parameters:
        number - to be formatted
        one - unicode scalar value denoting numeric value 1
        letterValue - letter value (must be one of the above letter value enumeration values)
        features - features (feature sub-parameters)
        language - denotes applicable language
        country - denotes applicable country
        Returns:
        formatted number as array of unicode scalars
      • formatOnesInThousand

        private java.util.List<java.lang.String> formatOnesInThousand​(java.util.List<java.lang.String> wl,
                                                                      int number)