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

6
LINES

< > BotCompany Repo | #1004815 // shortClassName

JavaX fragment (include)

static S shortClassName(O o) {
  if (o == null) ret null;
  Class c = o instanceof Class ? (Class) o : o.getClass();
  S name = c.getName();
  ret shortenClassName(name);
}

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: #1004815
Snippet name: shortClassName
Eternal ID of this version: #1004815/1
Text MD5: eae1122b7cbfd618d7badb36d7a72645
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-26 16:43:18
Source code size: 177 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 711 / 960
Referenced in: #1005244 - shortDynamicClassName
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013188 - shortClassNameIs
#1025163 - lightlyShortClassName
#1032064 - shortClassName_dropNumberPrefix
#1036316 - shortClassName2