Android Utililty Methods String Equal

List of utility methods to do String Equal

Description

The list of methods to do String Equal are organized into topic(s).

Method

booleanequals(final String target1, final String target2)
equals
return (target1 == null) ? (target2 == null) : target1
        .equals(target2);
booleanequalsIgnoreCase(final String target1, final String target2)
equals Ignore Case
return (target1 == null) ? (target2 == null) : target1
        .equalsIgnoreCase(target2);
intfindOf(String str, String chars, int startIdx, int endIdx, int offset, boolean isEqual)
find Of
if (offset == 0)
    return -1;
int charCnt = chars.length();
int idx = startIdx;
while (true) {
    if (0 < offset) {
        if (endIdx < idx)
            break;
...
booleanStringEquals(String s1, String s2)
String Equals
if (s1 == s2)
    return true;
if (s1 == null || s2 == null)
    return false;
return s1.equals(s2);