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

12
LINES

< > BotCompany Repo | #1006972 // titleWithSnippet - return title plus snippet ID formatted for user

JavaX fragment (include)

static S titleWithSnippet(long id) {
  ret titleWithSnippet(fsI(id));
}

static S titleWithSnippet(S id) {
  id = formatSnippetID(id);
  ret getSnippetTitle(id) + " " + id;
}

static S titleWithSnippet(Snippet s) {
  ret s == null ? "-" : s.title + " " + fsI(s.id);
}

Author comment

Began life as a copy of #1004807

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006972
Snippet name: titleWithSnippet - return title plus snippet ID formatted for user
Eternal ID of this version: #1006972/4
Text MD5: 09f40dc9763faa41589428135c0edccc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-25 14:23:59
Source code size: 280 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 465
Version history: 3 change(s)
Referenced in: [show references]