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

7
LINES

< > BotCompany Repo | #1029717 // cEraseField - set to null, also delete Concept.Ref

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

Libraryless. Click here for Pure Java version (13187L/89K).

static <A extends Concept> void nuLike cEraseField(Class<A> c, S field) {
  for (Concept concept : list(c))
    if (getOptDyn(concept, field) != null) {
      setOpt(concept, field, null);
      concept.change();
    }
}

Author comment

Began life as a copy of #1029635

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: #1029717
Snippet name: cEraseField - set to null, also delete Concept.Ref
Eternal ID of this version: #1029717/1
Text MD5: 1393ad3bf8f9546e4c3c11eb7925ae48
Transpilation MD5: 51cf73863624ce857facbb3019f64276
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-08 13:21:37
Source code size: 226 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 110 / 166
Referenced in: [show references]