contentEquals
fun String.contentEquals(charSequence: CharSequence): Boolean
Returns true
if this string is equal to the contents of the specified CharSequence, false
otherwise.
Unlike the overload that accepts an argument of type StringBuffer, this function does not compare this string and the specified CharSequence in a synchronized block.
fun String.contentEquals(
stringBuilder: StringBuffer
): Boolean
Returns true
if this string is equal to the contents of the specified StringBuffer, false
otherwise.
This function compares this string and the specified StringBuffer in a synchronized block that acquires that StringBuffer's monitor.