commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: [Lang] Pair toString
Date Wed, 20 Apr 2011 06:10:58 GMT
Is Pair now good (for a value of consensually agreed good)?

On Mon, Apr 11, 2011 at 7:00 AM, Gary Gregory <garydgregory@gmail.com> wrote:
> Hi All:
>
> I added a test to verify the default Pair toString behavior.
>
> For me to replace our custom Pair class at work, I need to customize the to
> String behavior.
>
> Subclassing ImmutablePair and MutablePair to override toString smells nasty.
>
> What about adding a formatString ivar which will be used with the
> String.format API?
>
> --
> Thank you,
> Gary
>
> http://garygregory.wordpress.com/
> http://garygregory.com/
> http://people.apache.org/~ggregory/
> http://twitter.com/GaryGregory
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message