Stephen McConnell wrote


Hang on .. what is the argument to is isCompatible ?

You example quotes:

> In other words if
> 1.2.3 is compatible with 1.2.4 then is 1.2.4 compatible > with 1.2.3 ?

This suggests that isCompatible() is evaluating a Dewey decimal version
- no? Concerning link reference - the initial page does not seem to take
into consideration "major", "minor", micro" semantics.  As such I'll
need some confirmation - does "X.Y.Z" carry version semantics or is it
simply a string?

Steve.



Good questions
from http://incubator.apache.org/depot/version/javadocs/org/apache/depot/version/Version.html


isCompatible

public boolean *isCompatible*(Version 
<http://incubator.apache.org/depot/version/javadocs/org/apache/depot/version/Version.html>
 version)

   May this version be used in place of the specified version.

*Parameters:*
|version| - the BaseVersion to check with *Returns:*
boolean



The version interface is a complete abstraction. It has methods for equals,compareTo,isCompatable and increment(String level). And that is it. No details on 1.2.3 or 1-a5 or what ever. I just used the 1.2.3 as an example.

But I still want to know if isCompatible should be symmetric.
So in the common Major.minor.point syntax
Since 1.2.4. is compatible with 1.2.3 is it also true that 1.2.3 is compatible with 1.2.4 ?

R,
Nick




Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to