@Test public void containsIgnoreCaseTest() { assertThat(LangUtils.containsIgnoreCase(null, "abc"), is(false)); assertThat(LangUtils.containsIgnoreCase("abc", null), is(false)); assertThat(LangUtils.containsIgnoreCase("", ""), is(true)); assertThat(LangUtils.containsIgnoreCase("abc", ""), is(true)); assertThat(LangUtils.containsIgnoreCase("abc", "a"), is(true)); assertThat(LangUtils.containsIgnoreCase("abc", "z"), is(false)); assertThat(LangUtils.containsIgnoreCase("abc", "A"), is(true)); assertThat(LangUtils.containsIgnoreCase("abc", "Z"), is(false)); }
public static boolean containsIgnoreCase(String s, String ss) { if (s == null || ss == null) return false; return s.toLowerCase(Locale.ROOT).contains(ss.toLowerCase(Locale.ROOT)); }
LangUtils { public static boolean containsIgnoreCase(String s, String ss) { if (s == null || ss == null) return false; return s.toLowerCase(Locale.ROOT).contains(ss.toLowerCase(Locale.ROOT)); } }
LangUtils { public static boolean containsIgnoreCase(String s, String ss) { if (s == null || ss == null) return false; return s.toLowerCase(Locale.ROOT).contains(ss.toLowerCase(Locale.ROOT)); } private  LangUtils(); }
LangUtils { public static boolean containsIgnoreCase(String s, String ss) { if (s == null || ss == null) return false; return s.toLowerCase(Locale.ROOT).contains(ss.toLowerCase(Locale.ROOT)); } private  LangUtils(); static boolean isBlank(String s); static boolean containsIgnoreCase(String s, String ss); static String capitalize(String s); static String uncapitalize(String s); static String join(CharSequence delimiter, Stream<?> stream); static String join(CharSequence delimiter, Iterator<?> iterator); static String join(CharSequence delimiter, Iterable<?> iterable); }
LangUtils { public static boolean containsIgnoreCase(String s, String ss) { if (s == null || ss == null) return false; return s.toLowerCase(Locale.ROOT).contains(ss.toLowerCase(Locale.ROOT)); } private  LangUtils(); static boolean isBlank(String s); static boolean containsIgnoreCase(String s, String ss); static String capitalize(String s); static String uncapitalize(String s); static String join(CharSequence delimiter, Stream<?> stream); static String join(CharSequence delimiter, Iterator<?> iterator); static String join(CharSequence delimiter, Iterable<?> iterable); static final String[] EMPTY_STRING_ARRAY; }