Notations
instead.@Deprecated public final class CamelCase extends Object
Modifier and Type | Method and Description |
---|---|
static String |
cat(String... strings)
Deprecated.
Concatenates the given strings, with the first letter of each string except the first string
capitalized.
|
static String |
toHyphenSeparated(String s)
Deprecated.
Breaks the string up into words at upper-case letters, and the concatenates the words with hyphens.
|
static String |
toLowerCamelCase(String s)
Deprecated.
|
static String |
toUpperCamelCase(String s)
Deprecated.
|
static String |
toUpperCaseUnderscoreSeparated(String s)
Deprecated.
Converts the camel-case string s into a capitalized string with words separated with underscores.
|
public static String cat(String... strings)
Examples:
"list", "length" | => | "listLength" |
"My", "class" | => | "MyClass" |
"oneTwo", "threeFour" | => | "oneTwoThreefour" |
ArrayIndexOutOfBoundsException
- strings.length
was zeroIndexOutOfBoundsException
- One of the strings has zero lengthNullPointerException
- One of the strings was null
public static String toLowerCamelCase(String s)
public static String toUpperCamelCase(String s)
public static String toHyphenSeparated(String s)
Copyright © 2018 Arno Unkrig. All rights reserved.