com.android.utils
Class StringHelper
java.lang.Object
com.android.utils.StringHelper
public class StringHelper
- extends java.lang.Object
Method Summary |
static void |
appendCamelCase(java.lang.StringBuilder sb,
java.lang.String word)
|
static java.lang.String |
capitalize(java.lang.String string)
|
static java.lang.String |
combineAsCamelCase(java.lang.Iterable<java.lang.String> stringList)
|
static java.util.List<java.lang.String> |
toStrings(java.lang.Object... objects)
Returns a list of Strings containing the objects passed in argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringHelper
public StringHelper()
capitalize
@NonNull
public static java.lang.String capitalize(@NonNull
java.lang.String string)
combineAsCamelCase
@NonNull
public static java.lang.String combineAsCamelCase(@NonNull
java.lang.Iterable<java.lang.String> stringList)
toStrings
@NonNull
public static java.util.List<java.lang.String> toStrings(@NonNull
java.lang.Object... objects)
- Returns a list of Strings containing the objects passed in argument.
If the objects are strings, they are directly added to the list.
If the objects are collections of strings, the strings are added.
For other objects, the result of their toString() is added.
- Parameters:
objects
- the objects to add
- Returns:
- the list of objects.
appendCamelCase
public static void appendCamelCase(@NonNull
java.lang.StringBuilder sb,
@Nullable
java.lang.String word)