Android String Equal equals(final CharSequence cs1, final CharSequence cs2)

Here you can find the source of equals(final CharSequence cs1, final CharSequence cs2)

Description

equals

Declaration

public static boolean equals(final CharSequence cs1,
            final CharSequence cs2) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean equals(final CharSequence cs1,
            final CharSequence cs2) {
        if (cs1 == cs2) {
            return true;
        }// ww  w  . j av a 2  s .c o  m
        if (cs1 == null || cs2 == null) {
            return false;
        }
        return cs1.toString().equals(cs2.toString());
    }
}

Related

  1. equals(String str1, String str2)
  2. equalsIgnoreCase(String str1, String str2)
  3. isEquals(String a, String b)
  4. equals(String str1, String str2)
  5. equal(String s1, String s2)
  6. isEquals(String str1, String str2)
  7. equals(String str1, String str2)