Libraryless. Click here for Pure Java version (10221L/57K).
// TODO: base on AbstractList to speed up subList().clear() // Note: We just assume the wrapped list is RandomAccess; // technically we should have 2 separate classes. persistable abstract sclass NotifyingList<A> extends NotifyingCollection<A> is L<A>, RandomAccess { L<A> list; *(List<A> *list) { super(list); } public L<A> subList(int i, int j) { throw todo(); } protected void setInnerList(L<A> list) { c = this.list = list; } void init { setInnerList(new L); } void initAndAddAll(Cl<A> l) { init(); addAll(l); } !include #1012666 }
Began life as a copy of #1009406
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011345 |
Snippet name: | NotifyingList - synchronized |
Eternal ID of this version: | #1011345/21 |
Text MD5: | f8fefb91d6d13cbcf4676fb2ec584535 |
Transpilation MD5: | 1f10e80e3c9fc9d7a0f66d548a91b36d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-03-10 23:11:29 |
Source code size: | 596 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 643 / 1393 |
Version history: | 20 change(s) |
Referenced in: | [show references] |