Java对< T,N>类实现 [英] Java Pair<T,N> class implementation

查看:91
本文介绍了Java对< T,N>类实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可靠的Java Pair类实现?

Is there available a proven Java Pair class implementation?

我的意思是随时可用,广泛接受和测试,可能是更广泛的库的一部分,如Apache Commons或Guava。

I mean readily available, widely accepted and tested, maybe part of a more extensive library such as Apache Commons or Guava.

推荐答案

是的,看看Apache Commons 配对

Yes, have a look at Apache Commons Pair.

谨慎使用,如果有的话; left right 并未真正传达有关元素之间内容或关系的任何信息。

Use sparingly, if at all; left and right doesn't really convey anything about the content or relation between the elements.

(故意将 Pair 类排除在标准Java API之外。)

(The Pair class was deliberately left out of the standard Java API.)

这篇关于Java对< T,N>类实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆