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

15
LINES

< > BotCompany Repo | #1009536 // IVar

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

Libraryless. Click here for Pure Java version (9099L/50K).

static interface IVar<A> extends IF0<A> {
  void set(A a);
  A get();
  
  // reified type of value (if available)
  default Class<A> getType() { null; }
  
  default IF0<A> getter() { ret l0 get; }
  default IVF1<A> setter() { ret l1 set; }
  
  ifndef Android
  default bool has() { ret get() != null; }
  default void clear() { set(null); }
  endifndef
}

download  show line numbers  debug dex  old transpilations   

Travelled to 41 computer(s): aoiabmzegqzx, ayivmpnvhhik, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dpqxeycirhfy, eiwvkucnqnjw, ekrmjmnbrukm, fehiwqupcyrn, fzcpzdstiiyc, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, jcllbfdqhrgy, jozkyjcghlvl, jtubtzbbkimh, lnbujpyubztb, lpdgvwnxivlt, lqnftawlhpir, mjouhigkdmyk, moomcjjtfopu, mowyntqkapby, mqqgnosmbjvj, nazvggbglmsf, ofpaelxlmzfo, onxytkatvevr, podlckwnjdmb, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, qipzzgwivdol, skddmizpvtmy, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wtqryiryparv, xiskaoettebs, xrpafgyirdlv, yanjaxplzisb

No comments. add comment

Snippet ID: #1009536
Snippet name: IVar
Eternal ID of this version: #1009536/9
Text MD5: ff9ee26c7004688a47189b3bb48b0b3c
Transpilation MD5: 35aed620df71019eebccbecc7b883251
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-27 02:44:12
Source code size: 371 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 546 / 19334
Version history: 8 change(s)
Referenced in: [show references]