commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MATH-432) Create a "Pair" class
Date Fri, 05 Nov 2010 16:36:56 GMT

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


Mime
View raw message