Class UpdateChecker.UpdateResult

java.lang.Object
wtf.choco.arrows.utils.UpdateChecker.UpdateResult
Enclosing class:
UpdateChecker

public final class UpdateChecker.UpdateResult
extends Object
Represents a result for an update query performed by UpdateChecker.requestUpdateCheck().
  • Method Details

    • getReason

      @NotNull public @NotNull UpdateChecker.UpdateReason getReason()
      Get the constant reason of this result.
      Returns:
      the reason
    • requiresUpdate

      public boolean requiresUpdate()
      Check whether or not this result requires the user to update.
      Returns:
      true if requires update, false otherwise
    • getNewestVersion

      @NotNull public @NotNull String getNewestVersion()
      Get the latest version of the plugin. This may be the currently installed version, it may not be. This depends entirely on the result of the update.
      Returns:
      the newest version of the plugin