de.unkrig.commons.text
Class CamelCase

java.lang.Object
  extended by de.unkrig.commons.text.CamelCase

public final class CamelCase
extends java.lang.Object

A collection of utility methods related to camel case.


Method Summary
static java.lang.String cat(java.lang.String... strings)
          Concatenates the given strings, with the first letter of each string except the first string capitalized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cat

public static java.lang.String cat(java.lang.String... strings)
Concatenates the given strings, with the first letter of each string except the first string capitalized.

Examples:

"list", "length" =>"listLength"
"My", "class" =>"MyClass"
"oneTwo", "threeFour"=>"oneTwoThreefour"

Throws:
java.lang.ArrayIndexOutOfBoundsException - strings.length was zero
java.lang.IndexOutOfBoundsException - One of the strings has zero length
java.lang.NullPointerException - One of the strings was null