@Test public void floatToObject() throws Exception { assertThat(StringUtil.primitiveToObject("float")).isEqualTo("Float"); }
public static String primitiveToObject(String type) { if ("boolean".equals(type)) { return "Boolean"; } if ("int".equals(type)) { return "Integer"; } if ("float".equals(type)) { return "Float"; } if ("double".equals(type)) { return "Double"; } return type; }
StringUtil { public static String primitiveToObject(String type) { if ("boolean".equals(type)) { return "Boolean"; } if ("int".equals(type)) { return "Integer"; } if ("float".equals(type)) { return "Float"; } if ("double".equals(type)) { return "Double"; } return type; } }
StringUtil { public static String primitiveToObject(String type) { if ("boolean".equals(type)) { return "Boolean"; } if ("int".equals(type)) { return "Integer"; } if ("float".equals(type)) { return "Float"; } if ("double".equals(type)) { return "Double"; } return type; }  }
StringUtil { public static String primitiveToObject(String type) { if ("boolean".equals(type)) { return "Boolean"; } if ("int".equals(type)) { return "Integer"; } if ("float".equals(type)) { return "Float"; } if ("double".equals(type)) { return "Double"; } return type; }  static String primitiveToObject(String type); static String getPackageName(String baseUrl); static String getPath(String packageName, String fileName); static boolean isReservedWord(String name); }
StringUtil { public static String primitiveToObject(String type) { if ("boolean".equals(type)) { return "Boolean"; } if ("int".equals(type)) { return "Integer"; } if ("float".equals(type)) { return "Float"; } if ("double".equals(type)) { return "Double"; } return type; }  static String primitiveToObject(String type); static String getPackageName(String baseUrl); static String getPath(String packageName, String fileName); static boolean isReservedWord(String name);  }