Java String Equal equalsIgnoreCase(String source, String query)

Here you can find the source of equalsIgnoreCase(String source, String query)

Description

equals Ignore Case

License

Open Source License

Declaration

public static boolean equalsIgnoreCase(String source, String query) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;
import java.util.List;

public class Main {
    public static boolean equalsIgnoreCase(String source, String query) {
        String parsedQuery = query.replace("f/", "").trim();
        List<String> strings = Arrays.asList(source.toLowerCase());
        return strings.stream().filter(s -> s.contains(parsedQuery.toLowerCase())).count() > 0;
    }/*from  w  w  w . j  a  v a 2 s . c o m*/
}

Related

  1. areStringsEqual(String s1, String s2, boolean caseInsensitive, boolean dontDistinctNullAndEmpty)
  2. areStringsEqual(String str1, String str2)
  3. collapseQualifier(String qualifier, boolean includeDots)
  4. equalsCaseless(String sA_, String sB_)
  5. equalsIgnoreCase(String s1, String s2)
  6. equalsOrExceeds(String version, String threshold)
  7. getEquality(String str1, String str2)
  8. isEqual(String str, String str2, boolean isCaseSensitive)
  9. pathEquals(String path1, String path2)