Class StringHelper

java.lang.Object
io.jmix.core.common.util.StringHelper

public final class StringHelper extends Object
  • Method Details

    • removeExtraSpaces

      public static String removeExtraSpaces(String str)
      Removes extra (more than one) whitespace characters from any place of the string.
      Examples:
      " aaa bbb ccc ddd " becomes "aaa bbb ccc ddd"
    • underscoreToCamelCase

      public static String underscoreToCamelCase(String str)
      Converts a string with underscores to camel case. For example:
           foo_bar      - fooBar
           FOO_BAR      - fooBar
           foo_bar_baz  - fooBarBaz
           foo__bar     - fooBar
           _foo_bar     - _fooBar
           foo          - foo