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 IVersionChecker STRICT
      A strict version checker that requires an exact match of the full version strings.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isCompatibleVersion​(java.lang.String oldVersion, java.lang.String newVersion)
      Returns true if the new version is compatible to the old version or both versions are equal
    • Field Detail

      • STRICT

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

      • isCompatibleVersion

        boolean isCompatibleVersion​(java.lang.String oldVersion,
                                    java.lang.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