public class LatestVersionMatcher extends AbstractVersionMatcher
Constructor and Description |
---|
LatestVersionMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ModuleRevisionId askedMrid,
ModuleDescriptor foundMD)
Indicates if this version matcher considers that the module found matches the asked one.
|
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<ModuleRevisionId> staticComparator)
If we don't need a module descriptor we can consider the dynamic revision to be greater.
|
boolean |
isDynamic(ModuleRevisionId askedMrid)
Indicates if the given asked ModuleRevisionId should be considered as dynamic for the current
VersionMatcher or not.
|
boolean |
needModuleDescriptor(ModuleRevisionId askedMrid,
ModuleRevisionId foundMrid)
Indicates if this VersionMatcher needs module descriptors to determine if a module revision
matches the asked one.
|
getName, getSettings, setName, setSettings, toString
public boolean isDynamic(ModuleRevisionId askedMrid)
VersionMatcher
askedMrid
- the dependency module revision id as asked by a modulepublic boolean accept(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)
VersionMatcher
askedMrid
- ModuleRevisionIdfoundMrid
- ModuleRevisionIdpublic boolean needModuleDescriptor(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)
VersionMatcher
needModuleDescriptor
in interface VersionMatcher
needModuleDescriptor
in class AbstractVersionMatcher
askedMrid
- ModuleRevisionIdfoundMrid
- ModuleRevisionIdpublic boolean accept(ModuleRevisionId askedMrid, ModuleDescriptor foundMD)
VersionMatcher
accept
in interface VersionMatcher
accept
in class AbstractVersionMatcher
askedMrid
- ModuleRevisionIdfoundMD
- ModuleDescriptorpublic int compare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, java.util.Comparator<ModuleRevisionId> staticComparator)
compare
in interface VersionMatcher
compare
in class AbstractVersionMatcher
askedMrid
- ModuleRevisionIdfoundMrid
- ModuleRevisionIdstaticComparator
- ComparatorCopyright ©2007-2022 The Apache Software Foundation, Licensed under Apache License, Version 2.0.