com.tngtech.jgiven.impl.util
Class WordUtil

java.lang.Object
  extended by com.tngtech.jgiven.impl.util.WordUtil

public final class WordUtil
extends java.lang.Object


Method Summary
static java.lang.String camelCase(java.lang.String string)
           
static java.lang.String capitalize(java.lang.String text)
          Returns the given text with the first letter in upper case.
static java.lang.String lowerCaseFirstChar(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

capitalize

public static java.lang.String capitalize(java.lang.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 java.lang.String lowerCaseFirstChar(java.lang.String text)

camelCase

public static java.lang.String camelCase(java.lang.String string)