static <A> L<A> syncInstancesOf(Iterable i, Class<A> c) { if (i == null) ret new L; synchronized(i) { ret collectInstances(i, c); } } static <A> L<A> nuLike syncInstancesOf(Class<A> c, Iterable i) { ret syncInstancesOf(i, c); }
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: | 407 / 446 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |