Package org.wildfly.channel.version
Interface VersionMatcher
-
- All Known Implementing Classes:
FixedVersionMatcher,VersionPatternMatcher
public interface VersionMatcher
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<String>COMPARATORCopied from https://raw.githubusercontent.com/wolfc/updepres/master/model/src/main/java/org/jboss/up/depres/version/VersionComparator.java FIXME: proper attribution
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Optional<String>getLatestVersion(Set<String> versions)Determine the latest version among the parameters based on theCOMPARATOR.Optional<String>matches(Set<String> samples)
-
-
-
Field Detail
-
COMPARATOR
static final Comparator<String> COMPARATOR
Copied from https://raw.githubusercontent.com/wolfc/updepres/master/model/src/main/java/org/jboss/up/depres/version/VersionComparator.java FIXME: proper attribution
-
-
Method Detail
-
getLatestVersion
static Optional<String> getLatestVersion(Set<String> versions)
Determine the latest version among the parameters based on theCOMPARATOR.- Parameters:
versions- a Set of versions- Returns:
- an Optional of the latest version.
-
-