Libraryless. Click here for Pure Java version (2135L/14K).
sbool matchRecordWithTypes(IFieldsToList record, Class... types) { O[] l = record._fieldsToList(); int n = l(l); if (n != l(types)) fail("Wrong number of arguments for " + className(record) + " " + asList(types)); for i to n: if (!isInstanceX(types[i], l[i])) false; true; }
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: | #1025423 |
Snippet name: | matchRecordWithTypes |
Eternal ID of this version: | #1025423/4 |
Text MD5: | 0f6475e9da76d9e41066e0b3612ea2d9 |
Transpilation MD5: | 2250546160506dd4187444b96d32157e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-28 22:46:17 |
Source code size: | 307 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 206 / 315 |
Version history: | 3 change(s) |
Referenced in: | [show references] |