org.usergrid.utils
Class InflectionUtils

java.lang.Object
  extended by org.usergrid.utils.InflectionUtils

public class InflectionUtils
extends Object


Constructor Summary
InflectionUtils()
           
 
Method Summary
static String camelCase(String lowerCaseAndUnderscoredWord, boolean uppercaseFirstLetter, char... delimiterChars)
           
static boolean isPlural(Object word)
           
static boolean isSingular(Object word)
           
static String pluralize(Object word)
           
static String singularize(Object word)
           
static String underscore(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InflectionUtils

public InflectionUtils()
Method Detail

pluralize

public static String pluralize(Object word)

singularize

public static String singularize(Object word)

isPlural

public static boolean isPlural(Object word)

isSingular

public static boolean isSingular(Object word)

underscore

public static String underscore(String s)

camelCase

public static String camelCase(String lowerCaseAndUnderscoredWord,
                               boolean uppercaseFirstLetter,
                               char... delimiterChars)


Copyright © 2013. All Rights Reserved.