Libraryless. Click here for Pure Java version (14690L/94K).
1 | svoid crenameField(Concept c, S oldField, S newField) { |
2 | if (c == null || eq(oldField, newField)) ret; |
3 | O value = cget(c, oldField); |
4 | if (newField != null) cset(c, newField, value); |
5 | cset(c, oldField, null); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030756 |
Snippet name: | crenameField |
Eternal ID of this version: | #1030756/2 |
Text MD5: | 8bc656e5239cf14446e1525c31da73d2 |
Transpilation MD5: | 6aab03da35e4a0909b50cc1c4d2676ef |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-19 14:23:42 |
Source code size: | 218 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 173 / 263 |
Version history: | 1 change(s) |
Referenced in: | [show references] |