Class TextProperties.Builder

  • Enclosing class:
    TextProperties

    public static class TextProperties.Builder
    extends Object
    Provides a builder for creating text properties instances.
    • Constructor Detail

      • Builder

        public Builder​(String locale)
        Creates a new builder with the specified locale
        Parameters:
        locale - the locale for the builder
    • Method Detail

      • hyphenate

        public TextProperties.Builder hyphenate​(boolean value)
        Sets the hyphenate value for this builder
        Parameters:
        value - the value
        Returns:
        returns this object
      • translationMode

        public TextProperties.Builder translationMode​(String mode)
        Sets the translation mode for the builder
        Parameters:
        mode - the translation mode
        Returns:
        returns this object
      • build

        public TextProperties build()
        Builds a new TextProperties object using the current status of this builder.
        Returns:
        returns a TextProperties instance