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.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/content-equals.html