@Test public void testCapitaliseString() { assertEquals(PARAM_1_TYPE_CAP, ServiceMethodTranslator.capitaliseString(PARAM_1_TYPE)); assertEquals(PARAM_2_TYPE_CAP, ServiceMethodTranslator.capitaliseString(PARAM_2_TYPE)); assertEquals(PARAM_3_TYPE_CAP, ServiceMethodTranslator.capitaliseString(PARAM_3_TYPE)); assertEquals(PARAM_4_TYPE_CAP, ServiceMethodTranslator.capitaliseString(PARAM_4_TYPE)); assertEquals(PARAM_10_TYPE, ServiceMethodTranslator.capitaliseString(PARAM_10_TYPE)); }
static String capitaliseString(String value) { String retValue = value; if (!value.contains(PACKAGE_SEPARATOR)) { StringBuffer newValue = new StringBuffer(); if (value != null && value.length() > 0) { newValue.append(value.substring(0, 1).toUpperCase()); newValue.append(value.substring(1)); retValue = newValue.toString(); } } return retValue; }
ServiceMethodTranslator { static String capitaliseString(String value) { String retValue = value; if (!value.contains(PACKAGE_SEPARATOR)) { StringBuffer newValue = new StringBuffer(); if (value != null && value.length() > 0) { newValue.append(value.substring(0, 1).toUpperCase()); newValue.append(value.substring(1)); retValue = newValue.toString(); } } return retValue; } }
ServiceMethodTranslator { static String capitaliseString(String value) { String retValue = value; if (!value.contains(PACKAGE_SEPARATOR)) { StringBuffer newValue = new StringBuffer(); if (value != null && value.length() > 0) { newValue.append(value.substring(0, 1).toUpperCase()); newValue.append(value.substring(1)); retValue = newValue.toString(); } } return retValue; }  }
ServiceMethodTranslator { static String capitaliseString(String value) { String retValue = value; if (!value.contains(PACKAGE_SEPARATOR)) { StringBuffer newValue = new StringBuffer(); if (value != null && value.length() > 0) { newValue.append(value.substring(0, 1).toUpperCase()); newValue.append(value.substring(1)); retValue = newValue.toString(); } } 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 String capitaliseString(String value) { String retValue = value; if (!value.contains(PACKAGE_SEPARATOR)) { StringBuffer newValue = new StringBuffer(); if (value != null && value.length() > 0) { newValue.append(value.substring(0, 1).toUpperCase()); newValue.append(value.substring(1)); retValue = newValue.toString(); } } 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; }