sclass AllContainingSet<A> extends AbstractSet<A> {
public int size() { ret 3; } // whatever
public Iterator<A> iterator() { fail(); }
public bool contains(O o) { true; }
public bool add(A a) { false; }
toString { ret "AllContainingSet"; }
}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: | 716 / 1159 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |