Package wtf.choco.veinminer.update
Interface VersionScheme
- 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 TypeMethodDescription@NotNull String
compareVersions
(@NotNull String first, @NotNull String second) Compare two versions and return the higher of the two.
-
Method Details
-
compareVersions
@NotNull @NotNull String compareVersions(@NotNull @NotNull String first, @NotNull @NotNull String second) throws UnsupportedOperationException Compare two versions and return the higher of the two.- Parameters:
first
- the first version to checksecond
- the second version to check- Returns:
- the greater of the two versions
- Throws:
UnsupportedOperationException
- if either of the two versions do not abide by this version scheme's expected format
-