Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1014431 // tempIndent - temporarily indent printing

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2546L/16K).

static <A> AutoCloseable tempIndent(S prefix default "  ") {
  threadIndent();
  ret new AutoCloseable {
    public void close() {
      threadUnindent();
    }
  };
}

Author comment

Began life as a copy of #1012424

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1014431
Snippet name: tempIndent - temporarily indent printing
Eternal ID of this version: #1014431/2
Text MD5: ee05aaf10d0dd131935b2b0cc5b9e152
Transpilation MD5: 6fa527afe074f986aaedb014e13b23e3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-06 15:54:48
Source code size: 174 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 472 / 573
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014792 - tempActivity - record current activity - dummy version doing nothing
#1014811 - tempAfterwards - do something after current block ends (even if there is an exception) - i.e., add action to (imaginary) finally clause of current block
#1015402 - tempDisposeWindow
#1015417 - tempGraphicsTransform