Class SubVersionMatcher
java.lang.Object
org.apache.ivy.plugins.version.AbstractVersionMatcher
org.apache.ivy.plugins.version.SubVersionMatcher
- All Implemented Interfaces:
IvySettingsAware, VersionMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid) Indicates if this version matcher considers that the module revision found matches the asked one.intcompare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, Comparator<ModuleRevisionId> staticComparator) This method should be overridden in most cases, because it uses the default contract to return 1 when it's not possible to know which revision is greater.booleanisDynamic(ModuleRevisionId askedMrid) Indicates if the given asked ModuleRevisionId should be considered as dynamic for the current VersionMatcher or not.Methods inherited from class AbstractVersionMatcher
accept, getName, getSettings, needModuleDescriptor, setName, setSettings, toString
-
Constructor Details
-
SubVersionMatcher
public SubVersionMatcher()
-
-
Method Details
-
isDynamic
Description copied from interface:VersionMatcherIndicates if the given asked ModuleRevisionId should be considered as dynamic for the current VersionMatcher or not.- Parameters:
askedMrid- the dependency module revision id as asked by a module- Returns:
- true if this revision is considered as a dynamic one, false otherwise
-
accept
Description copied from interface:VersionMatcherIndicates if this version matcher considers that the module revision found matches the asked one.- Parameters:
askedMrid- ModuleRevisionIdfoundMrid- ModuleRevisionId- Returns:
- boolean
-
compare
public int compare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, Comparator<ModuleRevisionId> staticComparator) Description copied from class:AbstractVersionMatcherThis method should be overridden in most cases, because it uses the default contract to return 1 when it's not possible to know which revision is greater.- Specified by:
comparein interfaceVersionMatcher- Overrides:
comparein classAbstractVersionMatcher- Parameters:
askedMrid- ModuleRevisionIdfoundMrid- ModuleRevisionIdstaticComparator- Comparator- Returns:
- int
-