public boolean contentEquals (StringBuffer sb)

Compares this string to the specified StringBuffer. The result is true if and only if this String represents the same sequence of characters as the specified StringBuffer.

Parameters:
sb     The StringBuffer to compare this String against

Returns:  true if this String represents the same sequence of characters as the specified StringBuffer, false otherwise

Since:  1.4