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

14
LINES

< > BotCompany Repo | #1003807 - _get - (partial) synonym of get - when get clashes with another method

JavaX fragment (include)

1  
static <A> A _get(L<A> l, int idx) {
2  
  ret l != null && idx >= 0 && idx < l(l) ? l.get(idx) : null;
3  
}
4  
5  
static O _get(O o, S field) {
6  
  ret get(o, field);
7  
}
8  
9  
static O mapMethodLike _get(S field, O o) {
10  
  ret get(o, field);
11  
}
12  
static <A> A _get(A[] l, int idx) {
13  
  ret idx >= 0 && idx < l(l) ? l[idx] : null;
14  
}

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, whxojlpjdney

No comments. add comment

Snippet ID: #1003807
Snippet name: _get - (partial) synonym of get - when get clashes with another method
Eternal ID of this version: #1003807/3
Text MD5: 2e8ef1c544c87d3fa88af8670d0735f6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-23 00:16:13
Source code size: 320 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 702
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1003807 & http://1003807.tinybrain.de