You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Steve Downey <st...@netfolio.com> on 2002/09/15 01:10:41 UTC

CompareToBuilder

CompareToBuilder
Utility for building compareTo. The comparison will be a lexical ordering over 
the fields used. This comparison is compatible with the EqualsBuilder and 
HashCodeBuilder utilities.

Re: CompareToBuilder

Posted by Stephen Colebourne <sc...@btopenworld.com>.
Checked in with minor changes, thanks:

1) getComparison() changed to toComparison(). Seemed more consistent.

2) Extra tests for correct exception type thrown

3) compare methods moved to NumberUtils, as they seemed more generic than
the builder.

Thanks ;-)
Stephen

----- Original Message -----
From: "Steve Downey" <st...@netfolio.com>
To: <co...@jakarta.apache.org>
Sent: Sunday, September 15, 2002 12:10 AM
Subject: CompareToBuilder


CompareToBuilder
Utility for building compareTo. The comparison will be a lexical ordering
over
the fields used. This comparison is compatible with the EqualsBuilder and
HashCodeBuilder utilities.



----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>