CharSequences { public static boolean containsIgnoreCase(final CharSequence str, final CharSequence searchStr) { return lastIndexOfIgnoreCase(str, searchStr) >= 0; } private  CharSequences(); @SuppressFBWarnings("CLI_CONSTANT_LIST_INDEX") static int distance(final CharSequence s1, final CharSequence s2); static int distance(final char c1, final char c2); @Deprecated static int compareTo(final CharSequence s, final CharSequence t); static int compare(final CharSequence s, final CharSequence t); static int compare(final CharSequence s, final int sLength,
          final CharSequence t, final int tLength); static int compare(final CharSequence s, final int sFrom, final int sLength,
          final CharSequence t, final int tFrom, final int tLength); static boolean equalsNullables(final CharSequence s, final CharSequence t); static boolean equals(final CharSequence s, final CharSequence t); static int hashcode(final CharSequence cs); static CharSequence subSequence(final CharSequence seq, final int startIdx, final int endIdx); static boolean startsWith(final CharSequence sequence, final CharSequence prefix, final int toffset); static boolean endsWith(final CharSequence qc, final CharSequence with); static Appendable lineNumbered(final int startLineNr, final Appendable appendable); static Appendable lineNumbered(final int startLineNr, final Appendable appendable, final IntAppender ia); static CharSequence toLineNumbered(final int startLineNr, final CharSequence source); static CharSequence toLineNumbered(final int startLineNr, final CharSequence source, final IntAppender ia); static int parseInt(@Nonnull final CharSequence s); static int parseInt(@Nonnull final CharSequence cs, final int radix); @SuppressWarnings("checkstyle:InnerAssignment") static int parseUnsignedInt(@Nonnull final CharSequence cs, final int radix, final int idxFrom); @SuppressWarnings("checkstyle:InnerAssignment") static int parseUnsignedInt(@Nonnull final CharSequence cs, final int radix,
          final int idxFrom, final int idxTo); @SuppressWarnings("checkstyle:InnerAssignment") static long parseUnsignedLong(@Nonnull final CharSequence cs, final int radix, final int idxFrom); @SuppressWarnings("checkstyle:InnerAssignment") static long parseUnsignedLong(@Nonnull final CharSequence cs, final int radix,
          final int idxFrom, final int idxTo, final boolean strict); static long parseLong(@Nonnull final CharSequence cs); static long parseLong(@Nonnull final CharSequence cs, final int radix); static boolean containsAnyChar(final CharSequence string, final char... chars); static boolean containsAnyChar(final CharSequence string,
          final int start, final int end,
          final char... chars); static boolean isValidJavaId(final CharSequence name); static boolean isValidFileName(@Nonnull final CharSequence fileName); static T validatedFileName(@Nonnull final T fileName); static boolean regionMatches(final CharSequence t, final int toffset,
          final CharSequence other, final int ooffset, final int plen); static boolean regionMatchesIgnoreCase(final CharSequence ta, final int toffset,
          final CharSequence pa, final int ooffset, final int plen); static boolean match(final CharSequence wildcard, final CharSequence cs2Match); CharSequence getJavaRegexpStr(final CharSequence wildcard); static int indexOf(final CharSequence cs, final int from, final int to, final char c); static int indexOf(final CharSequence cs, final int from, final int to, final IntPredicate cp); static int indexOf(final CharSequence cs, final int from, final int to, final char... chars); static boolean containsIgnoreCase(final CharSequence str, final CharSequence searchStr); static int lastIndexOfIgnoreCase(final CharSequence str, final CharSequence searchStr); static int indexOfIgnoreCase(final CharSequence str, final CharSequence searchStr, final int idxStart); static int countIgnoreCase(final CharSequence str, final CharSequence searchStr); @GwtIncompatible static Reader reader(final CharSequence cs);  }
@Test public void testCotains() { Assert.assertTrue(CharSequences.containsIgnoreCase("asdgafsdHgas", "")); Assert.assertTrue(CharSequences.containsIgnoreCase("asdgafsdHgas", "sdh")); Assert.assertFalse(CharSequences.containsIgnoreCase("asdgafsdHgas", "sdhf")); }