static IterableIterator<Message> mail_iterateFolder(final Folder folder) ctex { mail_openReadOnlyIfClosed(folder); final int n = folder.getMessageCount(); ret new IterableIterator<Message>() { int i = n; public bool hasNext() { ret i >= 1; } public Message next() ctex { ret folder.getMessage(i--); } }; }
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: | 376 / 410 |
Version history: | 6 change(s) |
Referenced in: | [show references] |