Android String Contain contains(final CharSequence seq, final CharSequence searchSeq)

Here you can find the source of contains(final CharSequence seq, final CharSequence searchSeq)

Description

contains

Declaration

public static boolean contains(final CharSequence seq,
            final CharSequence searchSeq) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean contains(final CharSequence seq,
            final CharSequence searchSeq) {
        if (seq == null || searchSeq == null) {
            return false;
        }/* ww  w.j a v  a  2  s .com*/
        return seq.toString().indexOf(searchSeq.toString()) >= 0;
    }
}

Related

  1. contains(String str1, String str2)
  2. checkContainSpace(final String x)
  3. containsCharRef(String s)
  4. containCount(String str, String searchStr)
  5. contains(String str, String searchStr)
  6. contains(String[] str, String searchStr)
  7. contains(String str, List keywords)