1 | static <A> long iteratorCount(Iterator<A> i) { |
2 | long n = 0; |
3 | if (i != null) while (i.hasNext()) { i.next(); ++n; } |
4 | ret n; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1019727 |
Snippet name: | iteratorCount |
Eternal ID of this version: | #1019727/2 |
Text MD5: | 1f0258da27575e6bf7157ee5dc84eab5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-21 16:42:37 |
Source code size: | 131 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 254 / 296 |
Version history: | 1 change(s) |
Referenced in: | [show references] |