public List < com . groupon . odo . proxylib . models . Method > getMethodsNotInGroup ( int groupId ) throws Exception { List < com . groupon . odo . proxylib . models . Method > allMethods = getAllMethods ( ) ; List < com . groupon . odo . proxylib . models . Method > methodsNotInGroup = new ArrayList < com . groupon . odo . proxylib . models . Method > ( ) ; List < com . groupon . odo . proxylib . models . Method > methodsInGroup = editService . getMethodsFromGroupId ( groupId , null ) ; for ( int i = 0 ; i < allMethods . size ( ) ; i ++ ) { boolean add = true ; String methodName = allMethods . get ( i ) . getMethodName ( ) ; String className = allMethods . get ( i ) . getClassName ( ) ; for ( int j = 0 ; j < methodsInGroup . size ( ) ; j ++ ) { if ( ( methodName . equals ( methodsInGroup . get ( j ) . getMethodName ( ) ) ) && ( className . equals ( methodsInGroup . get ( j ) . getClassName ( ) ) ) ) { add = false ; } } if ( add ) { methodsNotInGroup . add ( allMethods . get ( i ) ) ; } } return methodsNotInGroup ; }
returns all methods not in the group