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

3
LINES

< > BotCompany Repo | #1003652 // eqOneOf - equals, multiple checks

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (55L/1K).

static bool eqOneOf(O o, O... l) {
  if (l != null) for (O x : l) if (eq(o, x)) true; false;
}

Author comment

Began life as a copy of #1003577

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003652
Snippet name: eqOneOf - equals, multiple checks
Eternal ID of this version: #1003652/2
Text MD5: 64fe1b757a17290b96e216ea36d4e632
Transpilation MD5: 9662518fff64764b039f815bcdbc5dcf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-08 18:42:18
Source code size: 96 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 726 / 1350
Version history: 1 change(s)
Referenced in: #1003973 - startsWithOneOf - startsWith, multiple checks
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008640 - neqOneOf - doesn't equal one of
#1010285 - cicOneOf - contains ignore case, multiple checks