Interface IVersionChecker

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 interface IVersionChecker
The modification checker holds a version or time stamp for the version or time it is up to date. You could ask the modification checker whether a given version or time stamp is expired and you could get the actual version.
Author:
dirmeier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IVersionChecker
    A strict version checker that requires an exact match of the full version strings.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isCompatibleVersion(String oldVersion, String newVersion)
    Returns true if the new version is compatible to the old version or both versions are equal
  • Field Details

    • STRICT

      static final IVersionChecker STRICT
      A strict version checker that requires an exact match of the full version strings.
  • Method Details

    • isCompatibleVersion

      boolean isCompatibleVersion(String oldVersion, String newVersion)
      Returns true if the new version is compatible to the old version or both versions are equal
      Parameters:
      oldVersion - the old version
      newVersion - the new version
      Returns:
      true if versions are compatible