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

8
LINES

< > BotCompany Repo | #1025833 // IHasGlobalID mix-in

JavaX fragment (include)

GlobalID globalID =
  ifdef alwaysSetGlobalIDs aGlobalIDObj(); endifdef
  ifndef alwaysSetGlobalIDs aGlobalIDObjUnlessLoading(); endifndef

public GlobalID globalID() { ret globalID; }
public S globalIDStr() { ret strOrNull(globalID); }

S prependGlobalID(S s) { ret globalID == null ? s : "[" + globalID + "] " + s; }

Author comment

Began life as a copy of #1025406

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, ekrmjmnbrukm, elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv

No comments. add comment

Snippet ID: #1025833
Snippet name: IHasGlobalID mix-in
Eternal ID of this version: #1025833/7
Text MD5: 025777945a17c58b3d307a1102d843fa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-06 12:55:30
Source code size: 325 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 247 / 4719
Version history: 6 change(s)
Referenced in: #1025406 - HasGlobalID
#1025834 - PairWithGlobalID
#1026103 - ConceptWithGlobalID
#1033609 - WithGlobalID