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

8
LINES

< > BotCompany Repo | #1022348 // AllContainingSet - basically only contains() and add()

JavaX fragment (include)

1  
sclass AllContainingSet<A> extends AbstractSet<A> {
2  
  public int size() { ret 3; } // whatever
3  
  public Iterator<A> iterator() { fail(); }
4  
  public bool contains(O o) { true; }
5  
  public bool add(A a) { false; }
6  
  
7  
  toString { ret "AllContainingSet"; }
8  
}

Author comment

Began life as a copy of #1021317

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022348
Snippet name: AllContainingSet - basically only contains() and add()
Eternal ID of this version: #1022348/4
Text MD5: 62e44907ba792754b021d95acfbf6fb2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-17 00:10:09
Source code size: 261 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 255 / 699
Version history: 3 change(s)
Referenced in: [show references]