1 | static int compareIgnoreCase_keepSeparate(S a, S b) { |
2 | if (a == null) ret b == null ? 0 : -1; |
3 | if (b == null) ret 1; |
4 | int c = a.compareToIgnoreCase(b); |
5 | if (c != 0) ret c; |
6 | ret a.compareTo(b); |
7 | } |
Began life as a copy of #1004962
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012945 |
Snippet name: | compareIgnoreCase_keepSeparate - keeps neq-strings different |
Eternal ID of this version: | #1012945/1 |
Text MD5: | c131538c44aa2b3a04a3e47a298b74f4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-18 17:03:51 |
Source code size: | 205 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 400 / 434 |
Referenced in: | [show references] |