You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2010/11/05 17:22:41 UTC
[jira] Reopened: (MATH-432) Create a "Pair" class
[ https://issues.apache.org/jira/browse/MATH-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb reopened MATH-432:
-----------------------
I'm not sure why one needs to implement Map.Entry for this purpose, rather than just implementing a plain Pair.
AFAICT, the code does not need the mutability of Map.Entry, so why not use an immutable Pair class?
> Create a "Pair" class
> ---------------------
>
> Key: MATH-432
> URL: https://issues.apache.org/jira/browse/MATH-432
> Project: Commons Math
> Issue Type: New Feature
> Reporter: Gilles
> Assignee: Gilles
> Fix For: 3.0
>
>
> The {{AbstractMap.SimpleEntry}} implementation of {{Map.Entry<K,V>}} is only available in Java 1.6+.
> I propose to create a class Pair<K,V> to be used as a replacement.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.