commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Kulkarni <amitk...@yahoo.com>
Subject [lang] RE: Why is org.apache.commons.lang.math.IntRange final?
Date Thu, 04 Aug 2005 14:16:43 GMT
> > In this case, the AddressRange 'has a' range of valid integers.
> This should be represented by Composition, ie. by holding an IntRange
> field in your AddressRange class.

I finally used composition, overrode hashCode() + equals(), and added
methods based on Martin Fowler's "Range".

> > 
> > BTW, if you have a copy, checkout chapters 13 and 14 of Effective
> Java
> > by Joshua Bloch. If you don't have a copy, get one.
> > 
> > Stephen

I will, and thanks!


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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


Mime
View raw message