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

18
LINES

< > BotCompany Repo | #1009406 // ListInConcept

JavaX fragment (include)

sclass ListInConcept<E> extends CollectionInConcept<E> implements L<E> {
  L<E> list;
  
  *() {} // for persistence

  *(List<E> list, Concept cc) {
    super(list, cc);
    this.list = list;
  }
  
  public List<E> subList(int fromIndex, int toIndex) {
    synchronized (this) {
      ret new ListInConcept<>(list.subList(fromIndex, toIndex), cc);
    }
  }

  !include #1011344
}

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: 573 / 1813
Version history: 9 change(s)
Referenced in: [show references]