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

4
LINES

< > BotCompany Repo | #1024985 // scoredMapPut

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

Libraryless. Click here for Pure Java version (2131L/14K).

static <A, B> void scoredMapPut(Map<A, Scored<B>> map, A key, B value, double score) {
  if (map == null || key == null || value == null) ret;
  map.put(key, betterScored(map.get(key), Scored(value, score)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024985
Snippet name: scoredMapPut
Eternal ID of this version: #1024985/4
Text MD5: 78d62da676cc2c93a5688ef1966e7043
Transpilation MD5: 56fd765bebc237b9a119ce37cfbb32a0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-31 23:16:10
Source code size: 213 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 360
Version history: 3 change(s)
Referenced in: [show references]