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 Details

  • Method Details

    • currentVersion

      public String currentVersion()
    • latestStableVersion

      public String latestStableVersion()
    • latestExperimentalVersion

      public String latestExperimentalVersion()
    • summary

      public String summary()
    • stableUpdatesBehind

      public int stableUpdatesBehind()
    • showToolbarWarning

      public boolean showToolbarWarning()
    • showStartupPrompt

      public boolean showStartupPrompt()
    • latestStableReleaseUrl

      public String latestStableReleaseUrl()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • catalog

      Returns the value of the catalog record component.
      Returns:
      the value of the catalog record component
    • decision

      Returns the value of the decision record component.
      Returns:
      the value of the decision record component
    • uiState

      Returns the value of the uiState record component.
      Returns:
      the value of the uiState record component
    • installTargets

      public List<UpdateActionService.InstallTarget> installTargets()
      Returns the value of the installTargets record component.
      Returns:
      the value of the installTargets record component
    • experimentalUpdatesEnabled

      public boolean experimentalUpdatesEnabled()
      Returns the value of the experimentalUpdatesEnabled record component.
      Returns:
      the value of the experimentalUpdatesEnabled record component