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

3
LINES

< > BotCompany Repo | #1023881 // addUnlessEqualTo

JavaX fragment (include)

static <A> void addUnlessEqualTo(Collection<A> l, A a, A b) {
  if (l != null && neq(a, b)) l.add(a);
}

Author comment

Began life as a copy of #1015350

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023881
Snippet name: addUnlessEqualTo
Eternal ID of this version: #1023881/1
Text MD5: 05afa2f5381bc148b63c04b20f3f8123
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-11 14:14:34
Source code size: 105 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 221
Referenced in: [show references]