public static boolean isGetterMethod ( Method m ) { String methodName = m . getName ( ) ; if ( methodName . equals ( "getClass" ) ) { return false ; } if ( ! methodName . startsWith ( GET_METHOD_PREFIX ) && ! methodName . startsWith ( IS_METHOD_PREFIX ) ) { return false ; } if ( m . getParameterCount ( ) > 0 ) { return false ; } return true ; }
Is getter method boolean .