Class FormatPart


  • public final class FormatPart
    extends NativeObjectContainer
    Result of NumberFormat.formatToParts(double) which is containing the locale-specific tokens from which it possible to build custom strings while preserving the locale-specific parts.
    See MDN for more details.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getType

        public FormatPartType getType()
        Returns the type of the part.
        Returns:
        the type of the part
      • getValue

        public final String getValue()
        Returns the value of the part.
        Returns:
        the value of the part