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

7
LINES

< > BotCompany Repo | #1004084 // baseClassName - only the class's name (without package)

JavaX fragment (include)

1  
static S baseClassName(S className) {
2  
  ret substring(className, className.lastIndexOf('.')+1);
3  
}
4  
5  
static S baseClassName(O o) {
6  
  ret baseClassName(getClassName(o));
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004084
Snippet name: baseClassName - only the class's name (without package)
Eternal ID of this version: #1004084/1
Text MD5: e10313da31358d2765ae6e9255425b21
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-05 11:47:49
Source code size: 174 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 603 / 1122
Referenced in: [show references]