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

6
LINES

< > BotCompany Repo | #1014366 // isStringList - actually checks every element

JavaX fragment (include)

static bool isStringList(O o) {
  if (!o instanceof L) false;
  L l = cast o;
  for (O x : l) if (!x instanceof S) false;
  true;
}

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: #1014366
Snippet name: isStringList - actually checks every element
Eternal ID of this version: #1014366/1
Text MD5: aaa21289787ae201b4d454a2705cf28b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 16:31:14
Source code size: 136 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 442 / 475
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020151 - assertStringList - actually checks every element
#1030016 - assertAllElementsAreOfType - also allows nulls
#1030910 - isConceptList - actually checks every element
#1030929 - isStringCollection - actually checks every element