Class UpdateChecker

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.util.updater.UpdateChecker
All Implemented Interfaces:
IDebuggable

@Singleton public final class UpdateChecker extends Object implements IDebuggable
Represents an update checker that checks for new releases on GitHub.
  • Constructor Details

    • UpdateChecker

      public UpdateChecker(org.semver4j.Semver currentVersion)
      Instantiates a new update checker.

      Immediately runs a new check.

      Parameters:
      currentVersion - The current version of the project to compare potential updates against.
  • Method Details

    • checkForUpdates

      public void checkForUpdates()
      Runs a new update check.
    • getDebugInformation

      public String getDebugInformation()
      Description copied from interface: IDebuggable
      Gets the debug information for this object.
      Specified by:
      getDebugInformation in interface IDebuggable
      Returns:
      The debug information or null if there's nothing to log at this time.
    • getUpdateInformation

      public @Nullable UpdateInformation getUpdateInformation()
      The most recently retrieve update information.