commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gabriele renzi (JIRA)" <>
Subject [jira] Commented: (LANG-588) Create a basic Pair<L, R> class
Date Sat, 20 Feb 2010 09:39:27 GMT


gabriele renzi commented on LANG-588:

FWIW, the Pair class we use on my $WORK is more or less the same (bar not caching the hashcode,
I just xor the existing ones which should be usually ok) but there are two differences:
* pairOf is just of , which allows us to just write Pair.of(a,b). This also goes into the
direection of behing more coherent with, although not compatile
* can we have a proper toString method? :)

> Create a basic Pair<L, R> class
> -------------------------------
>                 Key: LANG-588
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Matt Benson
>             Fix For: 3.0
>         Attachments:,
> [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.

View raw message