1 | static <A, C extends Collection<A>> C assertDoesntContain(C c, A y) { |
2 | ret assertDoesntContain(null, c, y); |
3 | } |
4 | |
5 | static <A, C extends Collection<A>> C assertDoesntContain(S msg, C c, A y) { |
6 | if (contains(c, y)) |
7 | fail((msg != null ? msg + ": " : "") + y + " contained in " + c); |
8 | ret c; |
9 | } |
Began life as a copy of #1012660
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025741 |
Snippet name: | assertDoesntContain |
Eternal ID of this version: | #1025741/1 |
Text MD5: | 630a6def6b386b9fd8a84d8ec26781a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-16 17:56:07 |
Source code size: | 299 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 245 / 286 |
Referenced in: | [show references] |