Code example for CaseFormat

Methods: to

0
     * @param object Object for which to return the lowerCamelCaseName 
     * @return the lowerCamelCaseName of the Object 
     */ 
    public static String getRealClassNameLowerCamelCase(Object object) {
 
        return CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_CAMEL, object.getClass().getSimpleName());
 
    } 
 
    /** 
     * Convert value to class type value. 
     *  
     * If something goes wrong it returns null. 
     * 
     * @param from string value 
     * @param to type of the class 
     * @return class type value or null if something goes wrong. 
     */ 
    public static <T> T convert(String from, Class<T> to) {