private boolean isOperationMethod ( Method method ) { Class < ? > [ ] paramTypes = method . getParameterTypes ( ) ; return paramTypes . length == 1 && paramTypes [ 0 ] == Commit . class ; }
Returns a boolean value indicating whether the given method is an operation method .