static <A, B extends Number> void addPairIfBAtLeast(Collection<Pair<A, B>> c, A a, B b, Number threshold) { if (c != null && cmp(b, threshold) >= 0) c.add(pair(a, b)); }
Began life as a copy of #1012217
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: | #1021294 |
Snippet name: | addPairIfBAtLeast - add pair to collection if collection != null and b >= threshold |
Eternal ID of this version: | #1021294/3 |
Text MD5: | 793581ce85023170c8a6fcfb2fc7ae32 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-07 16:32:29 |
Source code size: | 173 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 370 / 394 |
Version history: | 2 change(s) |
Referenced in: | [show references] |