[
https://issues.apache.org/jira/browse/LANG-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832181#action_12832181
]
Matt Benson commented on LANG-588:
----------------------------------
I understand that, but apparently what I am not conveying is my assumption that
the type parameters would carry a mnemonic correlation with the class members
that carry the constituent parts of the Pair. I would thus expect, perhaps:
left/right->L/R
a/b->A/B
x/y->X/Y
thing1/thing2->T1/T2
...and my more facetious suggestions are perhaps too ridiculous for this
exercise.
> Create a basic Pair<L, R> class
> -------------------------------
>
> Key: LANG-588
> URL: https://issues.apache.org/jira/browse/LANG-588
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Matt Benson
> Fix For: 3.0
>
> Attachments: Pair.java, PairTest.java
>
>
> [lang] is the perfect place to provide a basic typed Pair class. I have
> written such a class for my employer (who hasn't?) but can/will rewrite blind
> to avoid IP issues. I think it's also nice to go ahead and extend this to
> MatchedPair<T> extends Pair<T, T> as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.