Package com.tbg.wms.cli.gui
Record Class UpdateManagerSnapshot
java.lang.Object
java.lang.Record
com.tbg.wms.cli.gui.UpdateManagerSnapshot
public record UpdateManagerSnapshot(UpdateCatalogService.ReleaseCatalog catalog, UpdatePolicyService.UpdateDecision decision, UpdateUiSupport.UpdateUiState uiState, List<UpdateActionService.InstallTarget> installTargets, boolean experimentalUpdatesEnabled)
extends Record
Immutable GUI snapshot for the update manager surface.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateManagerSnapshot(UpdateCatalogService.ReleaseCatalog catalog, UpdatePolicyService.UpdateDecision decision, UpdateUiSupport.UpdateUiState uiState, List<UpdateActionService.InstallTarget> installTargets, boolean experimentalUpdatesEnabled) Creates an instance of aUpdateManagerSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncatalog()Returns the value of thecatalogrecord component.decision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexperimentalUpdatesEnabledrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstallTargetsrecord component.booleanbooleanintsummary()final StringtoString()Returns a string representation of this record class.uiState()Returns the value of theuiStaterecord component.
-
Constructor Details
-
UpdateManagerSnapshot
public UpdateManagerSnapshot(UpdateCatalogService.ReleaseCatalog catalog, UpdatePolicyService.UpdateDecision decision, UpdateUiSupport.UpdateUiState uiState, List<UpdateActionService.InstallTarget> installTargets, boolean experimentalUpdatesEnabled) Creates an instance of aUpdateManagerSnapshotrecord class.- Parameters:
catalog- the value for thecatalogrecord componentdecision- the value for thedecisionrecord componentuiState- the value for theuiStaterecord componentinstallTargets- the value for theinstallTargetsrecord componentexperimentalUpdatesEnabled- the value for theexperimentalUpdatesEnabledrecord component
-
-
Method Details
-
currentVersion
-
latestStableVersion
-
latestExperimentalVersion
-
summary
-
stableUpdatesBehind
public int stableUpdatesBehind() -
showToolbarWarning
public boolean showToolbarWarning() -
showStartupPrompt
public boolean showStartupPrompt() -
latestStableReleaseUrl
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
catalog
Returns the value of thecatalogrecord component.- Returns:
- the value of the
catalogrecord component
-
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-
uiState
Returns the value of theuiStaterecord component.- Returns:
- the value of the
uiStaterecord component
-
installTargets
Returns the value of theinstallTargetsrecord component.- Returns:
- the value of the
installTargetsrecord component
-
experimentalUpdatesEnabled
public boolean experimentalUpdatesEnabled()Returns the value of theexperimentalUpdatesEnabledrecord component.- Returns:
- the value of the
experimentalUpdatesEnabledrecord component
-