Libraryless. Click here for Pure Java version (10221L/57K).
1 | // TODO: base on AbstractList to speed up subList().clear() |
2 | // Note: We just assume the wrapped list is RandomAccess; |
3 | // technically we should have 2 separate classes. |
4 | persistable abstract sclass NotifyingList<A> extends NotifyingCollection<A> is L<A>, RandomAccess { |
5 | L<A> list; |
6 | |
7 | *(List<A> *list) { |
8 | super(list); |
9 | } |
10 | |
11 | public L<A> subList(int i, int j) { throw todo(); } |
12 | |
13 | protected void setInnerList(L<A> list) { |
14 | c = this.list = list; |
15 | } |
16 | |
17 | void init { setInnerList(new L); } |
18 | void initAndAddAll(Cl<A> l) { init(); addAll(l); } |
19 | |
20 | !include #1012666 |
21 | } |
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: | 646 / 1397 |
Version history: | 20 change(s) |
Referenced in: | [show references] |