Libraryless. Click here for Pure Java version (15872L/102K).
1 | static BEAObject arbitraryObjectToBEAObject(O o) { |
2 | if (o instanceof BEAObject || o == null) ret (BEAObject) o; |
3 | new BEAObject bea; |
4 | for (Field f : fieldObjects(o)) { |
5 | if (hasFieldWithSameName(o, f)) |
6 | failWithVars("Field name conflict", +f, +o); |
7 | cset(bea, fieldGet(f, o)); |
8 | } |
9 | ret bea; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031354 |
Snippet name: | arbitraryObjectToBEAObject |
Eternal ID of this version: | #1031354/3 |
Text MD5: | b70d704197a0a2a32f1c1bd9246b102f |
Transpilation MD5: | 80e09b6af8556cb7621681fe18a269f7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-07 04:07:30 |
Source code size: | 313 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 170 / 236 |
Version history: | 2 change(s) |
Referenced in: | [show references] |