本文介绍了最佳Java函数库:JGA,公用函数,芒果还是...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对在Java中使用函子(函数对象)感兴趣.通过快速搜索,我发现了以下3个程序包:
I am interested in using functors (function objects) in Java. With quick googling I found these 3 packages:
- Java泛型算法: http://jga.sourceforge.net/
- 公用函子: http://commons.apache.org/sandbox/functor/
- 芒果: http://www.jezuk.co.uk/cgi- bin/view/mango
- Java Generics Algorithms: http://jga.sourceforge.net/
- Commons functor: http://commons.apache.org/sandbox/functor/
- Mango: http://www.jezuk.co.uk/cgi-bin/view/mango
在3个方面,JGA似乎拥有最好的设计.但是我怀疑这里实际使用过一个或多个软件包的其他人也许能够提供关于这些(也许其他)函子软件包的优缺点的更多见识.
and of 3, JGA seemed like it might have the best design. But I suspect others here who have actually used one or more of the packages might be able to offer more insight as to pros and cons of these (and perhaps other) functor packages.
推荐答案
Google馆藏库提供一个相似的Function
接口(尽管深度可能不一样).
The Google Collections Library provides a Function
interface that is similar (though probably not as in depth).
这篇关于最佳Java函数库:JGA,公用函数,芒果还是...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!