/** * Strips getter prefix from method name. * * @param methodName the name of the method to be processed * @return the stripped method name with Decapitalized first letter or null if passed method name has no getter prefix. */ public static String getFieldName(final String methodName) { if (isGetterMethod(methodName)) { return decapitalizeFirstCharOfString(stripGetterPrefix(methodName)); } return null; }
/** * Strips getter prefix from method name. * * @param methodName the name of the method to be processed * @return the stripped method name with Decapitalized first letter or null if passed method name has no getter prefix. */ public static String getFieldName(final String methodName) { if (isGetterMethod(methodName)) { return decapitalizeFirstCharOfString(stripGetterPrefix(methodName)); } return null; }