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

6
LINES

< > BotCompany Repo | #1003550 // class Var - thread-safe variable

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

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

static class Var<A> implements IVar<A>, ISetter<A> {
  *() {}
  *(A *v) {}

  !include #1023196
}

download  show line numbers  debug dex  old transpilations   

Travelled to 29 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, fehiwqupcyrn, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, jtubtzbbkimh, lhdilzshxjzv, lpdgvwnxivlt, lulzaavyztxj, mowyntqkapby, mqqgnosmbjvj, nazvggbglmsf, onxytkatvevr, podlckwnjdmb, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wtqryiryparv, xrpafgyirdlv

No comments. add comment

Snippet ID: #1003550
Snippet name: class Var - thread-safe variable
Eternal ID of this version: #1003550/8
Text MD5: 56ef23a29ee8c4249cef159befb8f8ee
Transpilation MD5: 74c513e9a99ca0568fe8cb5f35139bc4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-12 16:59:59
Source code size: 102 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 670 / 14006
Version history: 7 change(s)
Referenced in: #1003872 - Integrating #759 in One Program
#1003874 - Backup of #759 Before Integration
#1004091 - 759 with new loadClasses (spike)
#1016582 - Global Utils (stuff in here gets moved to x30_pkg.x30_util.*)
#1019343 - class LockedVar - thread-safe variable (same as Var), but using a ReentrantLock
#1023196 - Var [Include with toString]
#1023725 - NamedVar - Var + a name
#1031116 - class Var [lean mode]
#1032743 - LazyVar - variable evaluating itself on demand
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)