1 | static <A> void putHigherInt(Map<A, Int> map, A a, int i) {
|
2 | Int x = map.get(a); |
3 | if (x == null || i > x) map.put(a, i); |
4 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010996 |
| Snippet name: | putHigherInt - replace map value with higher value |
| Eternal ID of this version: | #1010996/2 |
| Text MD5: | fe5406b820eb4d93f8b68cbc90bdd229 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-11 03:22:01 |
| Source code size: | 127 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 584 / 621 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |