List of usage examples for org.apache.commons.lang3.text WordUtils uncapitalize
public static String uncapitalize(final String str, final char... delimiters)
Uncapitalizes all the whitespace separated words in a String.
From source file:org.squashtest.tm.web.internal.helper.HyphenedStringHelper.java
/** * Convert a CamelCaseString to a hyphened-string * @param camelCase/*from w w w.ja v a 2s . co m*/ * @return */ public static String camelCaseToHyphened(String camelCase) { String[] tokens = StringUtils.splitByCharacterTypeCamelCase(camelCase); return WordUtils.uncapitalize(StringUtils.join(tokens, '-'), HYPHEN_ARRAY); }