Package wtf.choco.arrows.util
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.
@FunctionalInterface public static interface UpdateChecker.VersionScheme
A functional interface to compare two version Strings with similar version schemes.
-
Method Summary
Modifier and Type Method Description @Nullable String
compareVersions(@NotNull String first, @NotNull String second)
Compare two versions and return the higher of the two.
-
Method Details
-
compareVersions
@Nullable @Nullable String compareVersions(@NotNull @NotNull String first, @NotNull @NotNull String second)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
-