Class UpdatePolicy

java.lang.Object
slash.navigation.converter.gui.helpers.UpdatePolicy

public class UpdatePolicy extends Object
Decides how insistently UpdateChecker should nudge towards a newer RouteConverter version, based on how far the running version has fallen behind.
Author:
Christian Pesch
  • Method Details

    • decide

      public static UpdatePolicy.Nudge decide(Version mine, Version latest)
      Every offer shows the release highlights; how far the running version has fallen behind only decides whether the "skip this version" checkbox is still offered.
    • isEndOfLife

      public static boolean isEndOfLife(Version mine)
      Whether the running version belongs to a generation that no longer receives map and routing updates. The gate is the RouteConverter major version alone - the Java version is not inspected, because every 2.x release bundled Java 8.