Class CamelCase


  • public class CamelCase
    extends java.lang.Object
    Transform string to camel case.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CamelCase.Characters  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String apply​(java.lang.String what)
      Convert given string to camelCase with first letter upper case.
      static java.lang.String apply​(java.lang.String what, boolean startWithCapital)
      Convert given string to camelCase.
      static java.lang.String apply​(java.lang.String what, boolean startWithCapital, CamelCase.Characters camelSeparators)
      Convert given string to camelCase.
      static java.lang.String apply​(java.lang.String what, CamelCase.Characters camelSeparators)
      Convert given string to camelCase with first letter upper case.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • apply

        public static java.lang.String apply​(java.lang.String what)
        Convert given string to camelCase with first letter upper case.
        Parameters:
        what - the string to convert
        Returns:
        the converted string
      • apply

        public static java.lang.String apply​(java.lang.String what,
                                             CamelCase.Characters camelSeparators)
        Convert given string to camelCase with first letter upper case.
        Parameters:
        what - the string to convert
        camelSeparators - chars that separate words in camel
        Returns:
        the converted string
      • apply

        public static java.lang.String apply​(java.lang.String what,
                                             boolean startWithCapital)
        Convert given string to camelCase.
        Parameters:
        what - the string to convert
        startWithCapital - should the returned string start with upper (true) or lower case (false)
        Returns:
        the converted string
      • apply

        public static java.lang.String apply​(java.lang.String what,
                                             boolean startWithCapital,
                                             CamelCase.Characters camelSeparators)
        Convert given string to camelCase.
        Parameters:
        what - the string to convert
        startWithCapital - should the returned string start with upper (true) or lower case (false)
        camelSeparators - chars that separate words in camel
        Returns:
        the converted string