@Test public void testAndHowName_forPropertyNameList() { assertEquals("a.b.c.MyClass.a.b.c", NameUtil.getAndHowName("a.b.c.MyClass", new String[] {"a", "b", "c"}) ); assertEquals("MyClass.a.b.c", NameUtil.getAndHowName("MyClass", new String[] {"a", "b", "c"}) ); assertEquals("a.b.c.MyClass", NameUtil.getAndHowName("a.b.c.MyClass", new String[] {}) ); assertEquals("a.b.c.MyClass", NameUtil.getAndHowName("a.b.c.MyClass", null) ); assertEquals("a.b.c.MyClass.$a.b.$c", NameUtil.getAndHowName("a.b.c.MyClass", new String[] {"$a", "b", "$c"}) ); }
public static String getAndHowName(String classCanonName, String propName, List<String> innerPath) { if (innerPath != null && innerPath.size() > 0) { return classCanonName + "." + String.join(".", innerPath) + "." + propName; } else { return classCanonName + "." + propName; } }
NameUtil { public static String getAndHowName(String classCanonName, String propName, List<String> innerPath) { if (innerPath != null && innerPath.size() > 0) { return classCanonName + "." + String.join(".", innerPath) + "." + propName; } else { return classCanonName + "." + propName; } } }
NameUtil { public static String getAndHowName(String classCanonName, String propName, List<String> innerPath) { if (innerPath != null && innerPath.size() > 0) { return classCanonName + "." + String.join(".", innerPath) + "." + propName; } else { return classCanonName + "." + propName; } }  }
NameUtil { public static String getAndHowName(String classCanonName, String propName, List<String> innerPath) { if (innerPath != null && innerPath.size() > 0) { return classCanonName + "." + String.join(".", innerPath) + "." + propName; } else { return classCanonName + "." + propName; } }  static String getAndHowName(String classCanonName, String propName, List<String> innerPath); static String getAndHowName(String classCanonName, String propName, String... innerPath); static String getJavaName(String classCanonName, String[] innerPath); static String getJavaName(String classCanonName, List<String> innerPath); static String getAndHowName(String classCanonName, String[] innerPath); static String getAndHowName(Class<?> group); static String getJavaName(Class<?> group); static String getAndHowName(Class<?> group, Property<?> property); }
NameUtil { public static String getAndHowName(String classCanonName, String propName, List<String> innerPath) { if (innerPath != null && innerPath.size() > 0) { return classCanonName + "." + String.join(".", innerPath) + "." + propName; } else { return classCanonName + "." + propName; } }  static String getAndHowName(String classCanonName, String propName, List<String> innerPath); static String getAndHowName(String classCanonName, String propName, String... innerPath); static String getJavaName(String classCanonName, String[] innerPath); static String getJavaName(String classCanonName, List<String> innerPath); static String getAndHowName(String classCanonName, String[] innerPath); static String getAndHowName(Class<?> group); static String getJavaName(Class<?> group); static String getAndHowName(Class<?> group, Property<?> property);  }