Class UpdaterConfig

java.lang.Object
net.guizhanss.guizhanlib.updater.UpdaterConfig

public final class UpdaterConfig extends Object
This class contains config options for GuizhanBuildsUpdater, which is passed as an argument.
See Also:
  • Field Details

  • Constructor Details

    • UpdaterConfig

      public UpdaterConfig()
    • UpdaterConfig

      public UpdaterConfig(boolean checkOnly, String baseUrl)
      Creates a new UpdaterConfig instance.
      Parameters:
      checkOnly - Limits the updater to check update only, no file download.
      baseUrl - The base URL of Guizhan Builds.
  • Method Details

    • builder

      public static UpdaterConfig.UpdaterConfigBuilder builder()
    • checkOnly

      public boolean checkOnly()
      Limits the updater to check update only, no file download.
    • baseUrl

      public String baseUrl()
      The base URL of Guizhan Builds.
    • checkOnly

      public UpdaterConfig checkOnly(boolean checkOnly)
      Limits the updater to check update only, no file download.
      Returns:
      this.
    • baseUrl

      public UpdaterConfig baseUrl(String baseUrl)
      The base URL of Guizhan Builds.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object