C G I L T U 
All Classes All Packages

C

check() - Method in class com.technicjelle.UpdateChecker
Checks for updates from a GitHub repository's releases
This method blocks the thread it is called from
checkAsync() - Method in class com.technicjelle.UpdateChecker
Checks for updates from a GitHub repository's releases
This method does not block the thread it is called from
com.technicjelle - package com.technicjelle
 

G

getCurrentVersion() - Method in class com.technicjelle.UpdateChecker
Gets the current version of the program.
Useful in case you want to log a custom message.

Does not actually check for updates
getLatestVersion() - Method in class com.technicjelle.UpdateChecker
Checks if necessary and returns the latest available version
getUpdateMessage() - Method in class com.technicjelle.UpdateChecker
Checks if necessary and returns a message if an update is available.
The message will contain the latest version and a link to the GitHub releases page.

I recommend that you use one of the log methods if you want to log the update message: logUpdateMessage(Logger) logUpdateMessageAsync(Logger) logUpdateMessage(Consumer) logUpdateMessageAsync(Consumer) But this function remains available in case you want to use it manually.

Example message:
New version available: v2.5 (current: v2.4)
Download it at https://github.com/TechnicJelle/UpdateCheckerJava/releases/latest
getUpdateUrl() - Method in class com.technicjelle.UpdateChecker
Gets the URL to the GitHub releases page, where the latest version can be downloaded.
Useful in case you want to log a custom message.

Does not actually check for updates
getUpdateURL() - Method in class com.technicjelle.UpdateChecker
Gets the URL to the GitHub releases page, where the latest version can be downloaded.
Useful in case you want to log a custom message.

Does not actually check for updates

I

isUpdateAvailable() - Method in class com.technicjelle.UpdateChecker
Checks if necessary and returns whether an update is available or not

L

logUpdateMessage(Consumer<String>) - Method in class com.technicjelle.UpdateChecker
This method logs a message to the console if an update is available
Useful if you don't use Java's own Logger and you want to use your own.
logUpdateMessage(Logger) - Method in class com.technicjelle.UpdateChecker
This method logs a message to the console if an update is available
logUpdateMessageAsync(Consumer<String>) - Method in class com.technicjelle.UpdateChecker
This method logs a message to the console if an update is available, asynchronously
Useful if you don't use Java's own Logger and you want to use your own.
logUpdateMessageAsync(Logger) - Method in class com.technicjelle.UpdateChecker
This method logs a message to the console if an update is available, asynchronously

T

trace(Throwable) - Static method in class com.technicjelle.UpdateChecker
Convenience function to convert a Throwable to a String, including the stacktrace.

U

UpdateChecker - Class in com.technicjelle
Checks for updates on a GitHub repository
UpdateChecker(String, String, String, Consumer<Throwable>) - Constructor for class com.technicjelle.UpdateChecker
Start the program with -Dtechnicjelle.updatechecker.disabled to disable the update checker
C G I L T U 
All Classes All Packages