1 | static <A> A peekPrevious(ListIterator<A> it) { |
2 | if (!it.hasPrevious()) null; |
3 | A a = it.previous(); |
4 | it.next(); |
5 | ret a; |
6 | } |
Began life as a copy of #1028201
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028202 |
Snippet name: | peekPrevious - peek at previous object of ListIterator |
Eternal ID of this version: | #1028202/1 |
Text MD5: | 390ba3fec3737d843a88c57a08558487 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-26 12:55:25 |
Source code size: | 130 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 157 / 191 |
Referenced in: | [show references] |