public interface Indent extends AutoCloseable
indentation
scope.
Example usage:
try (Indent i1 = Debug.logAndIndent("header message")) { ... Debug.log("message"); ... try (Indent i2 = Debug.logAndIndent(sub-header message")) { ... Debug.log("inner message"); ... } }
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the current indentation scope.
|
void close()
close
in interface AutoCloseable