toString

open override fun toString(): String

Returns a string identifying this synchronizer, as well as its state. The state, in brackets, includes the String "State =" followed by the current value of .getState, and either "nonempty" or "empty" depending on whether the queue is empty.

Return

a string identifying this synchronizer, as well as its state