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

5
LINES

< > BotCompany Repo | #1030049 // lastValue

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3851L) is out of date.

static <A, B> B lastValue(NavigableMap<A, B> map) {
  if (map == null) null;
  Map.Entry<A, B> entry = map.lastEntry();
  ret entry?.getValue();
}

Author comment

Began life as a copy of #1030048

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030049
Snippet name: lastValue
Eternal ID of this version: #1030049/6
Text MD5: 72cf4a6db67487a2c03c4d59a8700c38
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-05 23:59:09
Source code size: 150 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 230
Version history: 5 change(s)
Referenced in: [show references]