Class UpdateChecker
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.util.updater.UpdateChecker
- All Implemented Interfaces:
IDebuggable
Represents an update checker that checks for new releases on GitHub.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateChecker(org.semver4j.Semver currentVersion) Instantiates a new update checker. -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<@Nullable UpdateInformation> Runs a new update check.Gets the debug information for this object.@Nullable UpdateInformationThe most recently retrieve update information.
-
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
Runs a new update check.- Returns:
- The resulting update information.
-
getDebugInformation
Description copied from interface:IDebuggableGets the debug information for this object.- Specified by:
getDebugInformationin interfaceIDebuggable- Returns:
- The debug information or null if there's nothing to log at this time.
-
getUpdateInformation
The most recently retrieve update information.
-