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

17
LINES

< > BotCompany Repo | #1000784 // sort function

JavaX fragment (include)

1  
static <T> void sort(T[] a, Comparator<? super T> c) {
2  
  if (a != null) Arrays.sort(a, c);
3  
}
4  
5  
static <T> void sort(T[] a) {
6  
  if (a != null) Arrays.sort(a);
7  
}
8  
9  
svoid sort(int[] a) { if (a != null) Arrays.sort(a); }
10  
11  
static <T> void sort(List<T> a, Comparator<? super T> c) {
12  
  if (a != null) Collections.sort(a, c);
13  
}
14  
15  
static void sort(List a) {
16  
  if (a != null) Collections.sort(a);
17  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000784
Snippet name: sort function
Eternal ID of this version: #1000784/4
Text MD5: 3c405efca7ea259c8af6579062d5cfcd
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-30 19:17:28
Source code size: 401 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 797 / 1786
Version history: 3 change(s)
Referenced in: [show references]