Libraryless. Click here for Pure Java version (11120L/61K).
1 | svoid test_SynchronizedTypedArrayList() { |
2 | var list = new SynchronizedTypedArrayList(S.class); |
3 | list.add("hello"); |
4 | assertEqualsVerbose(ll("hello"), list); |
5 | assertException(-> list.add(123)); |
6 | assertEqualsVerbose(ll("hello"), list); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036531 |
Snippet name: | test_SynchronizedTypedArrayList (OK) |
Eternal ID of this version: | #1036531/2 |
Text MD5: | 9d17b43306a225f581247bb7aa1f2401 |
Transpilation MD5: | 32d422aa8eb6dd3b7e3ace3f55285321 |
Author: | stefan |
Category: | javax / collections |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-01-23 15:10:17 |
Source code size: | 245 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 158 / 209 |
Version history: | 1 change(s) |
Referenced in: | [show references] |