@Test public void references() { Assert.assertTrue(StringUtils.isReference("$test")); Assert.assertTrue(StringUtils.isReference("@test")); Assert.assertFalse(StringUtils.isReference("test")); try { StringUtils.isReference(null); } catch (NullPointerException e) { assertEquals("name", e.getMessage()); } }
public static boolean isReference(String name) { if (name == null) throw new NullPointerException("name"); return name.startsWith("$") || name.startsWith("@"); }
StringUtils { public static boolean isReference(String name) { if (name == null) throw new NullPointerException("name"); return name.startsWith("$") || name.startsWith("@"); } }
StringUtils { public static boolean isReference(String name) { if (name == null) throw new NullPointerException("name"); return name.startsWith("$") || name.startsWith("@"); }  }
StringUtils { public static boolean isReference(String name) { if (name == null) throw new NullPointerException("name"); return name.startsWith("$") || name.startsWith("@"); }  static boolean isReference(String name); static String encodeName(String string); static String encodeName(String string, char[] encode); static String encodeNameOld(String string, char[] encode); static String decodeName(String string); static String decodeNameOld(String string); static String join(Collection<String> strings, String delimiter); static String join(Collection<String> strings,
                              boolean encode, String delimiter); static String join(String[] strings, String delimiter); static String join(String[] strings,
                              boolean encode,
                              String delimiter); static String[] split(String string, boolean decode, String delimiter); static String camelCaseToDisplay(String camelCase); }
StringUtils { public static boolean isReference(String name) { if (name == null) throw new NullPointerException("name"); return name.startsWith("$") || name.startsWith("@"); }  static boolean isReference(String name); static String encodeName(String string); static String encodeName(String string, char[] encode); static String encodeNameOld(String string, char[] encode); static String decodeName(String string); static String decodeNameOld(String string); static String join(Collection<String> strings, String delimiter); static String join(Collection<String> strings,
                              boolean encode, String delimiter); static String join(String[] strings, String delimiter); static String join(String[] strings,
                              boolean encode,
                              String delimiter); static String[] split(String string, boolean decode, String delimiter); static String camelCaseToDisplay(String camelCase);  }