com.tngtech.jgiven.impl.util
Class WordUtil

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

public final class WordUtil
extends Object


Method Summary
static String camelCase(String string)
           
static String capitalize(String text)
          Returns the given text with the first letter in upper case.
static String lowerCaseFirstChar(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 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.