contentEquals

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

Platform and version requirements: JVM

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

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

Platform and version requirements: JVM

Returns true if this string is equal to the contents of the specified StringBuffer.