1 | static <A> L<A> syncInstancesOf(Iterable i, Class<A> c) {
|
2 | if (i == null) ret new L; |
3 | synchronized(i) {
|
4 | ret collectInstances(i, c); |
5 | } |
6 | } |
7 | |
8 | |
9 | |
10 | static <A> L<A> nuLike syncInstancesOf(Class<A> c, Iterable i) {
|
11 | ret syncInstancesOf(i, c); |
12 | } |
Began life as a copy of #1017023
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030062 |
| Snippet name: | syncInstancesOf - instancesOf + sync |
| Eternal ID of this version: | #1030062/1 |
| Text MD5: | d5c8e8be7c0edd17d537b7f0df296dc4 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-04 08:52:07 |
| Source code size: | 253 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 408 / 447 |
| Referenced in: | [show references] |