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

19
LINES

< > BotCompany Repo | #1007591 // unlisted

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

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

1  
// make concept instance that is not connected to DB
2  
static <A extends Concept> A nuLike unlisted(Class<A> c, O... args) {
3  
  concepts_unlisted.set(true);
4  
  try {
5  
    ret nuObject(c, args);
6  
  } finally {
7  
    concepts_unlisted.set(null);
8  
  }
9  
}
10  
11  
static Concept nuLike unlisted(S name, O... args) {
12  
  Class<? extends Concept> cc = findClass(name);
13  
  concepts_unlisted.set(true);
14  
  try {
15  
    ret cc != null ? nuObject(cc) : new Concept(name);
16  
  } finally {
17  
    concepts_unlisted.set(null);
18  
  }
19  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1007591
Snippet name: unlisted
Eternal ID of this version: #1007591/4
Text MD5: 578aa92cebc5458a7a6f33c3b6141e71
Transpilation MD5: ff8a4beb0032d7f3a609b8d788b6f0cf
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-18 22:09:45
Source code size: 508 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 643 / 762
Version history: 3 change(s)
Referenced in: [show references]