Libraryless. Click here for Pure Java version (2732L/16K).
1 | static <A, B> Map.Entry<A, B> simpleMapEntry(A key, B value) { |
2 | ret new Map.Entry<A, B>() { |
3 | public A getKey() { ret key; } |
4 | public B getValue() { ret value; } |
5 | unimplemented public B setValue(B newValue); |
6 | }; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030859 |
Snippet name: | simpleMapEntry |
Eternal ID of this version: | #1030859/1 |
Text MD5: | a4ade0418752d8887583ecdb8322e133 |
Transpilation MD5: | c0e8006d2404a7ae4d80fed6d23d2e04 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-04 17:15:14 |
Source code size: | 228 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 163 / 245 |
Referenced in: | [show references] |