Class FormatNumber.SubPicture

  • Enclosing class:
    FormatNumber

    public static class FormatNumber.SubPicture
    extends java.lang.Object
    Inner class to represent one sub-picture (the negative or positive subpicture)
    • Field Detail

      • minWholePartSize

        protected int minWholePartSize
      • maxWholePartSize

        protected int maxWholePartSize
      • minFractionPartSize

        protected int minFractionPartSize
      • maxFractionPartSize

        protected int maxFractionPartSize
      • minExponentSize

        protected int minExponentSize
      • scalingFactor

        protected int scalingFactor
      • isPercent

        protected boolean isPercent
      • isPerMille

        protected boolean isPerMille
      • prefix

        protected java.lang.String prefix
      • suffix

        protected java.lang.String suffix
      • wholePartGroupingPositions

        protected int[] wholePartGroupingPositions
      • fractionalPartGroupingPositions

        protected int[] fractionalPartGroupingPositions
      • regular

        protected boolean regular
      • is31

        protected boolean is31
    • Method Detail

      • format

        public java.lang.String format​(NumericValue value,
                                       DecimalSymbols dfs,
                                       java.lang.String minusSign)
        Format a number using this sub-picture
        Parameters:
        value - the absolute value of the number to be formatted
        dfs - the decimal format symbols to be used
        minusSign - the representation of a minus sign to be used
        Returns:
        the formatted number