1 | static ArrayList<S> assertIsStringArrayList(O o) { |
2 | if (!o instanceof ArrayList) |
3 | fail("Not an ArrayList: " + className(o)); |
4 | ArrayList l = cast o; |
5 | for (O x : l) |
6 | if (!x instanceof S) |
7 | fail("Not a string: " + className(x)); |
8 | ret l; |
9 | } |
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: | #1012468 |
Snippet name: | assertIsStringArrayList |
Eternal ID of this version: | #1012468/3 |
Text MD5: | 918b215791d3c429fb4af65a2dc83cff |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-03 21:24:43 |
Source code size: | 257 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 370 / 383 |
Version history: | 2 change(s) |
Referenced in: | [show references] |