@Test public void testArrayElement() { assertEquals(0, ServiceMethodTranslator.arrayElement(ServiceMethodTranslator.JAVA_PRIMITIVES, PARAM_2_TYPE)); assertEquals(1, ServiceMethodTranslator.arrayElement(ServiceMethodTranslator.JAVA_PRIMITIVES, PARAM_3_TYPE)); assertEquals(2, ServiceMethodTranslator.arrayElement(ServiceMethodTranslator.JAVA_PRIMITIVES, PARAM_4_TYPE)); }
static int arrayElement(String [] array, String value) { int retValue = -1; for (int i = 0; i < array.length; i++) { if (array[i].equals(value)) { retValue = i; break; } } return retValue; }
ServiceMethodTranslator { static int arrayElement(String [] array, String value) { int retValue = -1; for (int i = 0; i < array.length; i++) { if (array[i].equals(value)) { retValue = i; break; } } return retValue; } }
ServiceMethodTranslator { static int arrayElement(String [] array, String value) { int retValue = -1; for (int i = 0; i < array.length; i++) { if (array[i].equals(value)) { retValue = i; break; } } return retValue; }  }
ServiceMethodTranslator { static int arrayElement(String [] array, String value) { int retValue = -1; for (int i = 0; i < array.length; i++) { if (array[i].equals(value)) { retValue = i; break; } } return retValue; }  static int getMethodIndex(String [] methodsArray, String methodName); static String getMethodName(String [] methodsArray, int index); static String getMethodSignature(String [] methodsArray, int index); static int getParameterNumber(String methodName); static String getMethodParameterType(String methodName, int parameter); static String getMethodParameterTypeCapitalised(String methodName, int parameter); static String [] getMethodParameterTypesCapitalised(String methodName); static String [] getMethodParameterTypes(String methodName); static String getMethodParameterName(String methodName, int parameter); static String [] getMethodParameterNames(String methodName); static Class [] getParameterClasses(String methodName); }
ServiceMethodTranslator { static int arrayElement(String [] array, String value) { int retValue = -1; for (int i = 0; i < array.length; i++) { if (array[i].equals(value)) { retValue = i; break; } } return retValue; }  static int getMethodIndex(String [] methodsArray, String methodName); static String getMethodName(String [] methodsArray, int index); static String getMethodSignature(String [] methodsArray, int index); static int getParameterNumber(String methodName); static String getMethodParameterType(String methodName, int parameter); static String getMethodParameterTypeCapitalised(String methodName, int parameter); static String [] getMethodParameterTypesCapitalised(String methodName); static String [] getMethodParameterTypes(String methodName); static String getMethodParameterName(String methodName, int parameter); static String [] getMethodParameterNames(String methodName); static Class [] getParameterClasses(String methodName); static final String JAVA_LANG_PREFIX; static final String ANDROID_OS_PREFIX; static final String JAVA_PRIMITIVES; static final String JAVA_LANG_CLASSES; }