Class DynamicTextUtils


  • public class DynamicTextUtils
    extends java.lang.Object
    Helper class to perform text operations.
    See Also:
    String, CharSequence
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String capitalize​(java.lang.CharSequence text, java.util.Locale locale)
      Capitalize the first character of the supplied char sequence.
      static java.lang.String capitalize​(java.lang.String text, java.util.Locale locale)
      Capitalize the first character of the supplied string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicTextUtils

        public DynamicTextUtils()
    • Method Detail

      • capitalize

        @Nullable
        public static java.lang.String capitalize​(@Nullable
                                                  java.lang.String text,
                                                  @Nullable
                                                  java.util.Locale locale)
        Capitalize the first character of the supplied string.
        Parameters:
        text - The text to be capitalize.
        locale - The optional locale for better results.
        Returns:
        The string after capitalizing the first character.
      • capitalize

        @Nullable
        public static java.lang.String capitalize​(@Nullable
                                                  java.lang.CharSequence text,
                                                  @Nullable
                                                  java.util.Locale locale)
        Capitalize the first character of the supplied char sequence.
        Parameters:
        text - The text to be capitalize.
        locale - The optional locale for better results.
        Returns:
        The string after capitalizing the first character.