1 | static IterableIterator<Message> mail_iterateFolder(final Folder folder) ctex { |
2 | mail_openReadOnlyIfClosed(folder); |
3 | final int n = folder.getMessageCount(); |
4 | ret new IterableIterator<Message>() { |
5 | int i = n; |
6 | public bool hasNext() { |
7 | ret i >= 1; |
8 | } |
9 | |
10 | public Message next() ctex { |
11 | ret folder.getMessage(i--); |
12 | } |
13 | }; |
14 | } |
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: | #1012846 |
Snippet name: | mail_iterateFolder - returns newest mails first |
Eternal ID of this version: | #1012846/7 |
Text MD5: | cf22fd85b391faa7bdfc4dbef9f66640 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-14 18:58:53 |
Source code size: | 363 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 379 / 414 |
Version history: | 6 change(s) |
Referenced in: | [show references] |