Interface IsDefaultNumberFormatOptions

    • Method Detail

      • getCurrency

        Currency getCurrency()
        Returns the currency to use in currency formatting.
        Returns:
        the currency to use in currency formatting
      • getCurrencyDisplay

        CurrencyDisplay getCurrencyDisplay()
        Returns how to display the currency in currency formatting.
        Returns:
        how to display the currency in currency formatting
      • getCurrencySign

        CurrencySign getCurrencySign()
        In many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign.
        You can enable this formatting by setting the currency sign option to "accounting" otherwise "standard".
        Returns:
        the currency format to use on formatting
      • getNotation

        Notation getNotation()
        Returns the formatting that should be displayed for the number.
        Returns:
        the formatting that should be displayed for the number
      • getSignDisplay

        SignDisplay getSignDisplay()
        Returns when to display the sign for the number.
        Returns:
        when to display the sign for the number
      • getStyle

        Style getStyle()
        Returns the formatting style to use.
        Returns:
        the formatting style to use
      • getUnitsOfMeasure

        List<MeasureUnit> getUnitsOfMeasure()
        Returns an unmodifiable list of units to use in unit formatting.
        Returns:
        an unmodifiable list of unit to use in unit formatting
      • getUnitOfMeasureDisplay

        MeasureUnitDisplay getUnitOfMeasureDisplay()
        Returns the unit formatting style to use in unit formatting.
        Returns:
        the unit formatting style to use in unit formatting
      • isUseGrouping

        boolean isUseGrouping()
        Returns true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
        Returns:
        true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators
      • getMinimumIntegerDigits

        int getMinimumIntegerDigits()
        Returns the minimum number of integer digits to use.
        Returns:
        the minimum number of integer digits to use
      • getMinimumFractionDigits

        default int getMinimumFractionDigits()
        Returns the minimum number of fraction digits to use.
        The default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the currency, see Currency.getMinimumFractionDigits().
        Returns:
        the minimum number of fraction digits to use.
        The default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the currency, see Currency.getMinimumFractionDigits()
      • getMinimumSignificantDigits

        int getMinimumSignificantDigits()
        Returns the minimum number of significant digits to use.
        Returns:
        the minimum number of significant digits to use
      • getMaximumSignificantDigits

        int getMaximumSignificantDigits()
        Returns the maximum number of significant digits to use.
        Returns:
        the maximum number of significant digits to use
      • create

        default NumberFormatItem create()
        Creates a number format options instance using default or cloning current instance.
        Returns:
        a number format options instance using default or cloning current instance
      • create

        default NumberFormatItem create​(IsDefaultNumberFormatOptions defaultValues)
        Creates a number format options instance using default or cloning current instance.
        Parameters:
        defaultValues - default provider
        Returns:
        a number format options instance using default or cloning current instance