public static String determineFieldName ( @ Nonnull final String methodName ) { Check . notEmpty ( methodName , "methodName" ) ; final Matcher m = PATTERN . matcher ( methodName ) ; Check . stateIsTrue ( m . find ( ) , "passed method name '%s' is not applicable" , methodName ) ; return m . group ( 2 ) . substring ( 0 , 1 ) . toLowerCase ( ) + m . group ( 2 ) . substring ( 1 ) ; }
Determines the field name based on an accessor method name .