1 | static <A> IterableIterator<A> enumerationToIterator(final Enumeration<A> e) {
|
2 | ret e == null ? null : new IterableIterator {
|
3 | public bool hasNext() {
|
4 | ret e.hasMoreElements(); |
5 | } |
6 | |
7 | public A next() {
|
8 | ret e.nextElement(); |
9 | } |
10 | }; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016042 |
| Snippet name: | enumerationToIterator |
| Eternal ID of this version: | #1016042/1 |
| Text MD5: | af307732a156c6782f3360bef1d773bb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-03 13:16:23 |
| Source code size: | 268 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 619 / 677 |
| Referenced in: | [show references] |