You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2010/11/05 17:36:56 UTC

[jira] Commented: (MATH-432) Create a "Pair" class

    [ https://issues.apache.org/jira/browse/MATH-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928667#action_12928667 ] 

Gilles commented on MATH-432:
-----------------------------

In fact, it is the other way around, I didn't need "Pair" because I intended to reuse "AbstractMap.Entry".
Implementing "Map.Entry" would have been a reminder to revert the "sortInplace" to use that one, once CM targets Java 1.6 ;-).

However, apart from that, I don't have a preference. We could indeed have an immutable "Pair".
If everyone agrees, I can do the change.


> 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.