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

10
LINES

< > BotCompany Repo | #1017787 // unwrapSynchronizedList

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

Libraryless. Click here for Pure Java version (2734L/16K).

static <A> L<A> unwrapSynchronizedList(L<A> l) {
  ifdef OurSyncCollections
    if (l cast SynchronizedList) ret l.list;
  endifdef
  if (eqOneOf(className(l),
    "java.util.Collections$SynchronizedList",
    "java.util.Collections$SynchronizedRandomAccessList"))
    ret (L) get_raw(l, 'list);
  ret l;
}

Author comment

Began life as a copy of #1017786

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017787
Snippet name: unwrapSynchronizedList
Eternal ID of this version: #1017787/2
Text MD5: c5db350b46a38f1ef150d669e29a6148
Transpilation MD5: 4d896b1794a41cda04a0a9ee25bd4eaa
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-16 18:04:32
Source code size: 315 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 331 / 425
Version history: 1 change(s)
Referenced in: [show references]