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

7
LINES

< > BotCompany Repo | #1027584 // conceptID - get ID of Concept (or 0 if null)

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

Libraryless. Click here for Pure Java version (15428L/101K).

static long conceptID(Concept c) {
  ret c == null ? 0 : c.id;
}

static long conceptID(Concept.Ref ref) {
  ret conceptID(cDeref(ref));
}

Author comment

Began life as a copy of #1022602

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027584
Snippet name: conceptID - get ID of Concept (or 0 if null)
Eternal ID of this version: #1027584/4
Text MD5: a1af8efd009861863028d1cb477717fb
Transpilation MD5: 04dcc21f76d102b530e600fa54c2d8da
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-05 16:50:12
Source code size: 144 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 342
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1027586 - conceptIDOrNull - get ID of Concept (null if null)