Class NumberFormatOptions.Builder

    • Method Detail

      • applyDefaultsIfMissing

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder applyDefaultsIfMissing()
        Apply the defaults for all options that are not set when building the options.
        Returns:
        This builder for chaining method calls.
      • applyDefaultsIfMissing

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder applyDefaultsIfMissing​(boolean applyDefaultsIfMissing)
        When set to true, apply the defaults for all options that are not set when building the options.
        Parameters:
        applyDefaultsIfMissing - Whether to apply defaults for missing options.
        Returns:
        This builder for chaining method calls.
      • build

        public NumberFormatOptions build()
        Builds a new options instance. Subsequent modifications to this builder will not affect the returned instance.
        Returns:
        A new options instance.
      • decimalSeparator

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder decimalSeparator​(NumberFormatOptions.DecimalSeparator decimalSeparator)
        Separator to use to separate the integer part of the number from the fractional part.
        Parameters:
        decimalSeparator - The decimal separator to use.
        Returns:
        This builder for chaining method calls.
      • itemProperties

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder itemProperties​(IXItemPropertiesData itemProperties)
        Reads the number format options from the given item properties and sets them on this builder.
        Parameters:
        itemProperties - The item properties to read the options from.
        Returns:
        This builder for chaining method calls.
      • negativeSign

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder negativeSign​(char negativeSign)
        The sign used to indicate that a number is negative. Must be a single character. Must not be any of the numerical characters (digits).
        Parameters:
        negativeSign - The negative sign.
        Returns:
        This builder for chaining method calls.
      • positiveSign

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder positiveSign​(char positiveSign)
        The sign used to indicate that a number is positive. Must be a single character. Must not be any of the numerical characters (digits).
        Parameters:
        positiveSign - The positive sign.
        Returns:
        This builder for chaining method calls.
      • showPositiveSign

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder showPositiveSign()
        Show the positive sign for positive numbers.
        Returns:
        This builder for chaining method calls.
      • showPositiveSign

        @CanIgnoreReturnValue
        public NumberFormatOptions.Builder showPositiveSign​(boolean showPositiveSign)
        Whether to show the positive sign for positive numbers.
        Parameters:
        showPositiveSign - Whether to show the positive sign.
        Returns:
        This builder for chaining method calls.