public interface CompatibilityPolicy
This interface represents the naming and version numbering policy of import and export identifiers for the ImportSearchPolicy. A concrete implementation of this interface is required to create an instance of ImportSearchPolicy. The sole purpose of this interface is to allow the ImportSearchPolicy to determine if one import/export identifier and version is compatible with another.
ImportSearchPolicy
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object leftId,
java.lang.Object leftVersion,
java.lang.Object rightId,
java.lang.Object rightVersion)
Compares two import/export identifiers.
|
boolean |
isCompatible(java.lang.Object leftId,
java.lang.Object leftVersion,
java.lang.Object rightId,
java.lang.Object rightVersion)
Returns whether the first import/export identifer is compatible
with the second; this method should not throw any exceptions.
|
int compare(java.lang.Object leftId, java.lang.Object leftVersion, java.lang.Object rightId, java.lang.Object rightVersion)
leftId
- the identifier to test for compatibility.leftVersion
- the version number to test for compatibility.rightId
- the identifier used as the compatibility base line.rightVersion
- the version used as the compatibility base line.java.lang.IllegalArgumentException
- if the two identifiers
are not comparable, i.e., they refer to intrinsically different
entities.boolean isCompatible(java.lang.Object leftId, java.lang.Object leftVersion, java.lang.Object rightId, java.lang.Object rightVersion)
leftId
- the identifier to test for compatibility.leftVersion
- the version number to test for compatibility.rightId
- the identifier used as the compatibility base line.rightVersion
- the version used as the compatibility base line.