sclass SingleCollector<A> extends Collector<A> { bool full; A value; bool full() { ret full; } bool add(A a) { if (full) false; value = a; ret full = true; } bool contains(A a) { ret value == a; } }
Began life as a copy of #1005183
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007965 |
| Snippet name: | SingleCollector |
| Eternal ID of this version: | #1007965/1 |
| Text MD5: | 355a2808c76bface1c7241c57ef17cfd |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-17 21:52:10 |
| Source code size: | 236 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 763 / 1338 |
| Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |