Break from dynamically closest enclosing breakable block using this exact
Breaks
instance.
Break from dynamically closest enclosing breakable block using this exact
Breaks
instance.
This might be different than the statically closest enclosing block!
A block from which one can exit with a break
.
A block from which one can exit with a break
. The break
may be
executed further down in the call stack provided that it is called on the
exact same instance of Breaks
.
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
This variant enables the execution of a code block in case of a break()
:
This variant enables the execution of a code block in case of a break()
:
tryBreakable { for (...) { if (...) break() } } catchBreak { doCleanup() }
A class that can be instantiated for the break control abstraction. Example usage:
Calls to break from one instantiation of
Breaks
will never target breakable objects of some other instantiation.