Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1028202 // peekPrevious - peek at previous object of ListIterator

JavaX fragment (include)

static <A> A peekPrevious(ListIterator<A> it) {
  if (!it.hasPrevious()) null;
  A a = it.previous();
  it.next();
  ret a;
}

Author comment

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: 102 / 133
Referenced in: [show references]