Class 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.String format​(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 boolean useable​(java.lang.CharSequence input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)