com.tngtech.jgiven.impl.util
Class WordUtil
java.lang.Object
com.tngtech.jgiven.impl.util.WordUtil
public final class WordUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
capitalize
public static String capitalize(String text)
- Returns the given text with the first letter in upper case.
Examples:
capitalize("hi") == "Hi"
capitalize("Hi") == "Hi"
capitalize("hi there") == "hi there"
capitalize("") == ""
capitalize(null) == null
- Parameters:
text
- the text to capitalize
- Returns:
- text with the first letter in upper case
lowerCaseFirstChar
public static String lowerCaseFirstChar(String text)
camelCase
public static String camelCase(String string)
Copyright © 2014 TNG Technology Consulting. All rights reserved.