在android项目中查找类源(LinkedBlockingDeque)
我正在寻找版本 9 中添加到 Android sdk 中的类源。该类是 LinkedBlockingDeque
。
您如何找到特定课程的来源?
I'm looking for a class source added to the Android sdk in version 9. The class is LinkedBlockingDeque
.
How do you go about finding the source for a particular class?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用Java 1.6 实现。
从此处下载
然后更改
使其
在Android上编译。 BlockingDeque 是 BlockingQueue 的子接口,因此不会造成任何损害。
You can use Java 1.6 implementation.
Download it from here
Then change
to
To make it compile on Android. BlockingDeque is sub interface of BlockingQueue, so no harm done.
我认为以上任何内容都没有帮助:
首先,提到的一些许可证并不是完全开源的——他肯定更喜欢 apache 许可证。
其次,关于android类,我在那里找不到这个类。从那里获取代码可能会更好。
我认为目前最好的办法是自己实施。根据您的需要,即使是单锁的简单解决方案也足够了。
i don't think any of the above would help:
first, some of the licenses mentioned are not totally open source - surely he would prefer apache license.
second , about the android classes , i can't find this class there. it would probably be much better to get the code from there .
i think that for now , the best thing would be to implement it by yourself . even the naive solution of having a single lock could be enough , depending on your needs.