Class DynamicTextUtils
- java.lang.Object
-
- com.pranavpandey.android.dynamic.util.DynamicTextUtils
-
public class DynamicTextUtils extends java.lang.ObjectHelper class to perform text operations.- See Also:
String,CharSequence
-
-
Constructor Summary
Constructors Constructor Description DynamicTextUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringcapitalize(java.lang.CharSequence text, java.util.Locale locale)Capitalize the first character of the supplied char sequence.static java.lang.Stringcapitalize(java.lang.String text, java.util.Locale locale)Capitalize the first character of the supplied string.
-
-
-
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.
-
-