commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject [Lang] Pair toString
Date Mon, 11 Apr 2011 14:00:36 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message