public static boolean endsWith(CharSequence str, CharSequence suffix) {
        return endsWith(str, suffix, false);
    }
<p>Check if a CharSequence ends with a specified suffix.</p>

<p>{@code null}s are handled without exceptions. Two {@code null}
references are considered to be equal. The comparison is case sensitive.</p>

<pre>
StringUtils.endsWith(null, null)      = true
StringUtils.endsWith(null, "def")     = false
StringUtils.endsWith("abcdef", null)  = false
StringUtils.endsWith("abcdef", "def") = true
StringUtils.endsWith("ABCDEF", "def") = false
StringUtils.endsWith("ABCDEF", "cde") = false
</pre>

@see String#endsWith(String)
@param str  the CharSequence to check, may be null
@param suffix the suffix to find, may be null
@return {@code true} if the CharSequence ends with the suffix, case sensitive, or
 both {@code null}
@since 2.4
@since 3.0 Changed signature from endsWith(String, String) to endsWith(CharSequence, CharSequence)
android/android_framework/base/src/main/java/lang3/StringUtils.java