Interface UpdateChecker.VersionScheme
- Enclosing class:
- UpdateChecker
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface to compare two version Strings with similar version schemes.
-
Method Summary
Modifier and TypeMethodDescriptioncompareVersions
(String first, String second) Compare two versions and return the higher of the two.
-
Method Details
-
compareVersions
Compare two versions and return the higher of the two. If null is returned, it is assumed that at least one of the two versions are unsupported by this version scheme parser.- Parameters:
first
- the first version to checksecond
- the second version to check- Returns:
- the greater of the two versions. null if unsupported version schemes
-