Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1030756 // crenameField

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (14690L/94K).

svoid crenameField(Concept c, S oldField, S newField) {
  if (c == null || eq(oldField, newField)) ret;
  O value = cget(c, oldField);
  if (newField != null) cset(c, newField, value);
  cset(c, oldField, null);
}

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: 95 / 160
Version history: 1 change(s)
Referenced in: [show references]