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

11
LINES

< > BotCompany Repo | #1027588 // ClassOrName

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2209L) is out of date.

sclass ClassOrName<A> {
  Class<A> c;
  S name;
  
  *() {}
  *(Class<A> *c) {}
  *(S *name) {}
  
  Class asClass() { ret assertNotNull(c); }
  Class asClassOpt() { ret c; }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027588
Snippet name: ClassOrName
Eternal ID of this version: #1027588/4
Text MD5: 79533a0b99f52bb11a57999430c6a3f8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-25 13:19:15
Source code size: 186 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 503
Version history: 3 change(s)
Referenced in: [show references]