avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: Component Metadata and Metainfo model
Date Fri, 05 Jul 2002 07:12:35 GMT
At 09:08 AM 7/5/2002 +0200, you wrote:
> >     interface ServiceDesignator
> >     {
> >         Version getVersion();
> >         String getClassname();
> >         boolean matches( ServiceDesignator service );
> >     }
>
>okay. "matches()" is stupid though -- there's equals() to do just that.
>Right?

Matches is not the same as equals(). Matches allows you to have slightly 
different version services (as long as they follow certain rules). ie 1.3.4 
matches 1.3 but the reverse is not true.

Cheers,

Peter Donald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Faced with the choice between changing one's mind,
and proving that there is no need to do so - almost
everyone gets busy on the proof."
              - John Kenneth Galbraith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message