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).

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

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: 173 / 253
Referenced in: [show references]