Object StringUtil

  • All Implemented Interfaces:

    
    public class StringUtil
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String toSingleLine(String s) Normalizes given string and returns it represented as a single line:
      toSingleLine("""
          select a, b
          from c
          where d = 1
            and e = 2
      """) == "select a, b from c where d = 1 and e = 2"
      final String prependIndentExceptFirstLine(String s, String indent) Works as kotlin prependIndent except that the first line is excluded from the processing
      final Regex getLINE_FEED_REGEX()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait