Package cz.o2.proxima.core.util
Class CamelCase
- java.lang.Object
-
- cz.o2.proxima.core.util.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.
-
-
-
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 convertcamelSeparators
- 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 convertstartWithCapital
- 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 convertstartWithCapital
- should the returned string start with upper (true) or lower case (false)camelSeparators
- chars that separate words in camel- Returns:
- the converted string
-
-