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

8
LINES

< > BotCompany Repo | #1005332 // derefRef - convert Concept.Ref (not MatchVar) to Concept

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

Libraryless. Click here for Pure Java version (14811L/96K).

static O derefRef(O o) {
  if (o instanceof Concept.Ref) o = ((Concept.Ref) o).get();
  ret o;
}

static <A extends Concept> A derefRef(Concept.Ref<A> r) {
  ret r?!;
}

Author comment

Began life as a copy of #1005247

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005332
Snippet name: derefRef - convert Concept.Ref (not MatchVar) to Concept
Eternal ID of this version: #1005332/3
Text MD5: 29a22dc8fc70494f2fbd717063a05f69
Transpilation MD5: 316f345942e068776185fffca34d83c2
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-10 17:41:47
Source code size: 175 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 598 / 651
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1031057 - derefRefOrNull