Package org.esa.snap.core.util
Class VersionChecker
- java.lang.Object
-
- org.esa.snap.core.util.VersionChecker
-
public class VersionChecker extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VersionChecker.CHECK
-
Field Summary
Fields Modifier and Type Field Description static String
PK_CHECK_INTERVAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkForNewRelease()
VersionChecker.CHECK
getCheckInterval()
LocalDateTime
getDateTimeOfLastCheck()
static VersionChecker
getInstance()
Version
getLocalVersion()
Returns the local version, ornull
if no version could be foundVersion
getRemoteVersion()
Returns the remote version, ornull
if no version could be foundboolean
mustCheck()
void
setChecked()
-
-
-
Field Detail
-
PK_CHECK_INTERVAL
public static final String PK_CHECK_INTERVAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static VersionChecker getInstance()
-
mustCheck
public boolean mustCheck()
-
getCheckInterval
public VersionChecker.CHECK getCheckInterval()
-
getDateTimeOfLastCheck
public LocalDateTime getDateTimeOfLastCheck()
-
checkForNewRelease
public boolean checkForNewRelease()
-
setChecked
public void setChecked()
-
getLocalVersion
public Version getLocalVersion()
Returns the local version, ornull
if no version could be found- Returns:
- the local version, or
null
if no version could be found
-
getRemoteVersion
public Version getRemoteVersion()
Returns the remote version, ornull
if no version could be found- Returns:
- the remote version, or
null
if no version could be found
-
-