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 | } |
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: | 470 / 918 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |