@Test public void hasQuestionMark() { assertTrue(StringUtils.hasQuestionMark("seda:foo?size=123")); assertFalse(StringUtils.hasQuestionMark("seda:foo")); assertFalse(StringUtils.hasQuestionMark("")); assertFalse(StringUtils.hasQuestionMark(null)); }
static boolean hasQuestionMark(String val) { return val != null && val.indexOf('?') >= 0; }
StringUtils { static boolean hasQuestionMark(String val) { return val != null && val.indexOf('?') >= 0; } }
StringUtils { static boolean hasQuestionMark(String val) { return val != null && val.indexOf('?') >= 0; } private  StringUtils(); }
StringUtils { static boolean hasQuestionMark(String val) { return val != null && val.indexOf('?') >= 0; } 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 { static boolean hasQuestionMark(String val) { return val != null && val.indexOf('?') >= 0; } 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);  }