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

6
LINES

< > BotCompany Repo | #1031890 // ourSubList_noRangeCheck

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

Libraryless. Click here for Pure Java version (3499L/20K).

1  
static <A> L<A> ourSubList_noRangeCheck(L<A> l, int startIndex, int endIndex) {
2  
  if (l instanceof RandomAccess)
3  
    ret new RandomAccessSubList(l, startIndex, endIndex);
4  
  else
5  
    ret new SubList(l, startIndex, endIndex);
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031890
Snippet name: ourSubList_noRangeCheck
Eternal ID of this version: #1031890/2
Text MD5: 3f04b667335be8a76a614489679f0e4b
Transpilation MD5: 5f2a503a180bfa027c32afedad559f30
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-24 02:44:05
Source code size: 230 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 184 / 274
Version history: 1 change(s)
Referenced in: [show references]