Record Class BootstrapInstallerUpdate
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.bootstrap.selfupdate.BootstrapInstallerUpdate
- Record Components:
currentVersion- currently installed versionlatestVersion- latest version value used by the operationinstallerUri- URI to usereleasePageUri- URI to useplatform- target platform to match
public record BootstrapInstallerUpdate(VersionComparator.ParsedVersion currentVersion, VersionComparator.ParsedVersion latestVersion, URI installerUri, URI releasePageUri, Platform platform)
extends Record
Description of the newest bootstrap installer available for the current platform.
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapInstallerUpdate(VersionComparator.ParsedVersion currentVersion, VersionComparator.ParsedVersion latestVersion, URI installerUri, URI releasePageUri, Platform platform) Creates an instance of aBootstrapInstallerUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstallerUrirecord component.booleanChecks whether update available is enabled or applies.Returns the value of thelatestVersionrecord component.platform()Returns the value of theplatformrecord component.Returns the value of thereleasePageUrirecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BootstrapInstallerUpdate
public BootstrapInstallerUpdate(VersionComparator.ParsedVersion currentVersion, VersionComparator.ParsedVersion latestVersion, URI installerUri, URI releasePageUri, Platform platform) Creates an instance of aBootstrapInstallerUpdaterecord class.- Parameters:
currentVersion- the value for thecurrentVersionrecord componentlatestVersion- the value for thelatestVersionrecord componentinstallerUri- the value for theinstallerUrirecord componentreleasePageUri- the value for thereleasePageUrirecord componentplatform- the value for theplatformrecord component
-
-
Method Details
-
isUpdateAvailable
public boolean isUpdateAvailable()Checks whether update available is enabled or applies.- Returns:
trueif update available is enabled or applies; otherwisefalse
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
currentVersion
Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-
latestVersion
Returns the value of thelatestVersionrecord component.- Returns:
- the value of the
latestVersionrecord component
-
installerUri
Returns the value of theinstallerUrirecord component.- Returns:
- the value of the
installerUrirecord component
-
releasePageUri
Returns the value of thereleasePageUrirecord component.- Returns:
- the value of the
releasePageUrirecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-