contentEquals

inline fun String.contentEquals(charSequence: CharSequence): Boolean(source)

Returns true if this string is equal to the contents of the specified CharSequence, false otherwise.

Note that if the CharSequence argument is a StringBuffer then the comparison may be performed in a synchronized block that acquires that StringBuffer's monitor.

Since Kotlin

1.0

inline fun String.contentEquals(stringBuilder: StringBuffer): Boolean(source)

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.

Since Kotlin

1.0