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

5
LINES

< > BotCompany Repo | #1011505 // smallestList_checkElements

JavaX fragment (include)

static void smallestList_checkElements(O... e) {
  for (O o : e)
    if (/*o instanceof L ||*/ o instanceof Pair || o instanceof T3 || o instanceof O[])
      fail("Can't add this to a smallestList: " + shortToString(o));
}

Author comment

Began life as a copy of #1011504

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: #1011505
Snippet name: smallestList_checkElements
Eternal ID of this version: #1011505/4
Text MD5: 5536069760ee32b97c12744e673df7e5
Author: stefan
Category: javax / collections
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-30 23:13:14
Source code size: 227 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 400
Version history: 3 change(s)
Referenced in: [show references]