- java.lang.Object
-
- com.github.jezza.util.Strings
-
public final class Strings extends java.lang.Object- Author:
- Jezza
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringformat(java.lang.String input, java.lang.Object... objects)Replaces occurrences of "{}" in the original string with String-representations of the given objects.static java.util.List<java.lang.String>split(java.lang.String input)static booleanuseable(java.lang.CharSequence input)
-
-
-
Method Detail
-
useable
public static boolean useable(java.lang.CharSequence input)
-
format
public static java.lang.String format(java.lang.String input, java.lang.Object... objects)Replaces occurrences of "{}" in the original string with String-representations of the given objects.
NOTE: This method is very cheap to call and is highly optimized.- Parameters:
input- - The format string.objects- - The arguments that the format string refers to.- Returns:
- A formatted string.
-
split
public static java.util.List<java.lang.String> split(java.lang.String input)
-
-