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

3
LINES

< > BotCompany Repo | #1030169 // eqWithComparator (accepts null comparator)

JavaX fragment (include)

static <A> bool eqWithComparator(Comparator<A> comparator, A a, A b) {
  ret comparator == null ? eq(a, b) : comparator.compare(a, b) == 0;
}

Author comment

Began life as a copy of #1027807

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030169
Snippet name: eqWithComparator (accepts null comparator)
Eternal ID of this version: #1030169/1
Text MD5: c43b1e7ee10f3dc0e5e2d11659c8d4e5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-11 23:42:46
Source code size: 143 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 93 / 123
Referenced in: [show references]