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

5
LINES

< > BotCompany Repo | #1025446 // classNameRelativeTo

JavaX fragment (include)

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

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: 102 / 139
Referenced in: [show references]