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

18
LINES

< > BotCompany Repo | #1009406 // ListInConcept

JavaX fragment (include)

1  
sclass ListInConcept<E> extends CollectionInConcept<E> implements L<E> {
2  
  L<E> list;
3  
  
4  
  *() {} // for persistence
5  
6  
  *(List<E> list, Concept cc) {
7  
    super(list, cc);
8  
    this.list = list;
9  
  }
10  
  
11  
  public List<E> subList(int fromIndex, int toIndex) {
12  
    synchronized (this) {
13  
      ret new ListInConcept<>(list.subList(fromIndex, toIndex), cc);
14  
    }
15  
  }
16  
17  
  !include #1011344
18  
}

Author comment

Began life as a copy of #1009402

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009406
Snippet name: ListInConcept
Eternal ID of this version: #1009406/10
Text MD5: 0e605c9e0198d7da1fea80c9489aa642
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-25 21:30:00
Source code size: 399 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 507 / 1740
Version history: 9 change(s)
Referenced in: [show references]