You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Edelson, Justin" <Ju...@mtvi.com> on 2004/05/11 20:25:16 UTC

[lang] Equalator?

I'm writing a few classes that currently implement Comparator, but I
really don't care about comparisons - I just want to use an object to
test equality, ergo Equalator. Does such an interface exist somewhere in
lang (I can't find anything similar).

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


RE: [lang] Equalator?

Posted by Eric Pugh <ep...@upstate.com>.
Yes, I think the naming idea is good..  ConfigurationComparator probably
should have been a method on some sort of ConfigurationUtils class, as the
name is confusing...

Eric

> -----Original Message-----
> From: Emmanuel Bourg [mailto:smanux@lfjr.net]
> Sent: Monday, June 21, 2004 9:02 PM
> To: Jakarta Commons Developers List
> Subject: Re: [lang] Equalator?
>
>
> Edelson, Justin wrote:
>
> > I'm writing a few classes that currently implement Comparator, but I
> > really don't care about comparisons - I just want to use an object to
> > test equality, ergo Equalator. Does such an interface exist somewhere in
> > lang (I can't find anything similar).
>
> We have a simiar interface in [configuration], that's
> ConfigurationComparator, it defines a simple compare(conf1, conf2)
> method returning a boolean. I'm not quite satisfied with the name since
> it leads to think it inherits the java.util.Comparator interface. An
> Equalator interface in [lang] could be a good replacement.
>
> Emmanuel Bourg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


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


Re: [lang] Equalator?

Posted by Emmanuel Bourg <sm...@lfjr.net>.
Edelson, Justin wrote:

> I'm writing a few classes that currently implement Comparator, but I
> really don't care about comparisons - I just want to use an object to
> test equality, ergo Equalator. Does such an interface exist somewhere in
> lang (I can't find anything similar).

We have a simiar interface in [configuration], that's 
ConfigurationComparator, it defines a simple compare(conf1, conf2) 
method returning a boolean. I'm not quite satisfied with the name since 
it leads to think it inherits the java.util.Comparator interface. An 
Equalator interface in [lang] could be a good replacement.

Emmanuel Bourg


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