1 | static <A> Pair<A, PosNegScore> worstPosNegScore_keyAndValue(Map<A, PosNegScore> map) { |
2 | new Lowest<Pair<A, PosNegScore>> best; |
3 | if (map != null) for (A key, PosNegScore score : map) { |
4 | best.put(pair(key, score), score.pos-score.neg); |
5 | } |
6 | ret best!; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021979 |
Snippet name: | worstPosNegScore_keyAndValue |
Eternal ID of this version: | #1021979/1 |
Text MD5: | 47b0bf55ec6e86a6bd5accf00aeed312 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-04 15:40:01 |
Source code size: | 264 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 261 / 282 |
Referenced in: | [show references] |