1 | static O[] filterParams(O[] params, O... keys) { |
2 | Set set = asSet(keys); |
3 | new L l; |
4 | for (int i = 0; i < l(params); i += 2) |
5 | if (contains(set, params[i])) { |
6 | l.add(params[i]); |
7 | l.add(params[i+1]); |
8 | } |
9 | ret asObjectArray(l); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024307 |
Snippet name: | filterParams - grab selected keys from params (key/value object array) |
Eternal ID of this version: | #1024307/1 |
Text MD5: | a0a969a64d9e69aa2e448e844405a3ce |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-31 01:07:35 |
Source code size: | 252 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 256 / 302 |
Referenced in: | [show references] |