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

5
LINES

< > BotCompany Repo | #1025446 // classNameRelativeTo

JavaX fragment (include)

1  
sS classNameRelativeTo(O o, Class c) {
2  
  if (o == null) null;
3  
  if (c == null) ret className(o);
4  
  ret dropPrefix(className(c) + "$", className(o));
5  
}

Author comment

Began life as a copy of #1025443

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025446
Snippet name: classNameRelativeTo
Eternal ID of this version: #1025446/1
Text MD5: 371cc41d60090481720dd883605e48a3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-29 01:07:48
Source code size: 154 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 176 / 213
Referenced in: [show references]