1 | static <A> S treeViewToString_withoutHijackPrint(final TreeView<A> t, fO... _) { |
2 | new LS out; |
3 | treeViewToString_withoutHijackPrint_impl(t, 0, out, _); |
4 | ret lines(out); |
5 | } |
6 | |
7 | static <A> void treeViewToString_withoutHijackPrint_impl(TreeView<A> t, int indent, LS out, O... _) { |
8 | if (t == null) ret; |
9 | O stringifier = optPar stringifier(_); |
10 | out.add(spaces(indent) + callStringifier(stringifier, t)); |
11 | for (TreeView<A> c : unnull(t.children())) |
12 | treeViewToString_withoutHijackPrint_impl(c, indent+2, out, _); |
13 | } |
Began life as a copy of #1021921
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021922 |
Snippet name: | treeViewToString_withoutHijackPrint |
Eternal ID of this version: | #1021922/3 |
Text MD5: | 8a4501b90f32529a34d7ee2de4b7de10 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-03 17:51:17 |
Source code size: | 525 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 237 / 275 |
Version history: | 2 change(s) |
Referenced in: | [show references] |