@Test public void asComponentName() { assertEquals("seda", StringUtils.asComponentName("seda:foo?size=123")); assertEquals("seda", StringUtils.asComponentName("seda:foo")); assertEquals(null, StringUtils.asComponentName("seda")); assertNull(StringUtils.asComponentName(null)); }
@Nullable public static String asComponentName(String val) { if (val == null) { return null; } int pos = val.indexOf(':'); if (pos > 0) { return val.substring(0, pos); } return null; }
StringUtils { @Nullable public static String asComponentName(String val) { if (val == null) { return null; } int pos = val.indexOf(':'); if (pos > 0) { return val.substring(0, pos); } return null; } }
StringUtils { @Nullable public static String asComponentName(String val) { if (val == null) { return null; } int pos = val.indexOf(':'); if (pos > 0) { return val.substring(0, pos); } return null; } private  StringUtils(); }
StringUtils { @Nullable public static String asComponentName(String val) { if (val == null) { return null; } int pos = val.indexOf(':'); if (pos > 0) { return val.substring(0, pos); } return null; } private  StringUtils(); @Nullable static String asComponentName(String val); @Nullable static String asLanguageName(String val); @NotNull static String getSafeValue(String key, List<Map<String, String>> rows); @NotNull static String getSafeValue(String key, Map<String, String> rows); @NotNull static String wrapSeparator(String line, String separator, String newLine, int watermark); @Nullable static String wrapWords(String line, String newLine, int watermark, boolean wrapLongWords); static boolean isEmpty(String str); static boolean isNotEmpty(String str); static String stripDoubleQuotes(String text); }
StringUtils { @Nullable public static String asComponentName(String val) { if (val == null) { return null; } int pos = val.indexOf(':'); if (pos > 0) { return val.substring(0, pos); } return null; } private  StringUtils(); @Nullable static String asComponentName(String val); @Nullable static String asLanguageName(String val); @NotNull static String getSafeValue(String key, List<Map<String, String>> rows); @NotNull static String getSafeValue(String key, Map<String, String> rows); @NotNull static String wrapSeparator(String line, String separator, String newLine, int watermark); @Nullable static String wrapWords(String line, String newLine, int watermark, boolean wrapLongWords); static boolean isEmpty(String str); static boolean isNotEmpty(String str); static String stripDoubleQuotes(String text);  }