Class Translatable.Builder

  • Enclosing class:
    Translatable

    public static class Translatable.Builder
    extends Object
    Provides a builder for translatable objects
    • Method Detail

      • locale

        public Translatable.Builder locale​(String value)
        Sets the locale for this builder
        Parameters:
        value - the locale
        Returns:
        returns this object
      • attributes

        public Translatable.Builder attributes​(TextAttribute value)
        Sets the text attributes for this builder
        Parameters:
        value - the text attributes
        Returns:
        returns this object
      • hyphenate

        public Translatable.Builder hyphenate​(boolean value)
        Sets the hyphenate property for this builder
        Parameters:
        value - the hyphenate policy
        Returns:
        returns this object
      • markCapitalLetters

        public Translatable.Builder markCapitalLetters​(boolean value)
        Sets the capital letters property for this builder
        Parameters:
        value - the capital letters policy
        Returns:
        this object
      • build

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