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


< > BotCompany Repo | #1030269 - putAndReturnValue

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

Libraryless. Click here for Pure Java version (29L/1K).

static <A, B, C extends B> B putAndReturnValue(Map<A, B> map, A key, C value) {
  if (map != null) map.put(key, value);
  ret value;

download  show line numbers  debug dex   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030269
Snippet name: putAndReturnValue
Eternal ID of this version: #1030269/2
Text MD5: 910411ca8c610b35cb9bb65040f26b4b
Transpilation MD5: 1a71f3070c3e3e47386a4270691f4430
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-25 13:15:19
Source code size: 137 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 7 / 17
Version history: 1 change(s)
Referenced in: [show references]

Formerly at &