static <T> Map<S, T> subMapStartingWith_dropPrefix(Map<S, T> map, S prefix) { if (map == null) null; new Map<S, T> map2; for (S key, T value : map) { if (startsWith(key, prefix)) map2.put(substring(key, l(prefix)), value); } ret map2; }
Began life as a copy of #1004369
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: | #1021831 |
| Snippet name: | subMapStartingWith_dropPrefix - not optimized for TreeMaps |
| Eternal ID of this version: | #1021831/1 |
| Text MD5: | 8a61e8e0b21c39896b16c016167ed6fe |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-01 11:32:49 |
| Source code size: | 264 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 529 / 581 |
| Referenced in: | [show references] |