Warning: session_start(): open(/var/lib/php/sessions/sess_0935c955trcvpd9ce0kr310j6o, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
eqWithComparator (accepts null comparator) [1030169]

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: 534 / 550
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)