public class SubVersionMatcher extends AbstractVersionMatcher
| Constructor and Description |
|---|
SubVersionMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ModuleRevisionId askedMrid,
ModuleRevisionId foundMrid)
Indicates if this version matcher considers that the module revision found matches the asked
one.
|
int |
compare(ModuleRevisionId askedMrid,
ModuleRevisionId foundMrid,
java.util.Comparator staticComparator)
This method should be overriden in most cases, because it uses the default contract to return
1 when it's not possible to know which revision is greater.
|
boolean |
isDynamic(ModuleRevisionId askedMrid)
Indicates if the given asked ModuleRevisionId should be considered as dynamic for the current
VersionMatcher or not.
|
accept, getName, getSettings, needModuleDescriptor, setName, setSettings, toStringpublic boolean isDynamic(ModuleRevisionId askedMrid)
VersionMatcheraskedMrid - the dependency module revision id as asked by a modulepublic boolean accept(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)
VersionMatcherpublic int compare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, java.util.Comparator staticComparator)
AbstractVersionMatchercompare in interface VersionMatchercompare in class AbstractVersionMatcheraskedMrid - the dynamic revision to comparefoundMrid - the static revision to comparestaticComparator - a comparator which can be used to compare static revisions