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

8
LINES

< > BotCompany Repo | #1020151 // assertStringList - actually checks every element

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

Libraryless. Click here for Pure Java version (2724L/16K).

1  
static LS assertStringList(O o) {
2  
  if (!o instanceof L) fail("Not a list: " + className(o));
3  
  L l = cast o;
4  
  for (O x : l)
5  
    if (!x instanceof S)
6  
      fail("Not a string: " + className(x));
7  
  ret l;
8  
}

Author comment

Began life as a copy of #1014366

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020151
Snippet name: assertStringList - actually checks every element
Eternal ID of this version: #1020151/4
Text MD5: 3214af931308782195fa455124f1f6f3
Transpilation MD5: 805a91515fa01ae62281c1088067c6ba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-15 18:18:05
Source code size: 213 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 313 / 388
Version history: 3 change(s)
Referenced in: [show references]