Record Class BootstrapConfig

java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.bootstrap.BootstrapConfig
Record Components:
name - name value to read, write, or display
version - text value for version
repositoryUrl - URL to use
releasesUrl - URL to use
updatedManifestUrl - URL to use
distributor - text value for distributor

public record BootstrapConfig(String name, String version, String repositoryUrl, String releasesUrl, String updatedManifestUrl, String distributor) extends Record
Minimal configuration exposed to the application by the bootstrap runtime.
  • Constructor Details

    • BootstrapConfig

      public BootstrapConfig(String name, String version, String repositoryUrl, String releasesUrl, String updatedManifestUrl, String distributor)
      Creates an instance of a BootstrapConfig record class.
      Parameters:
      name - the value for the name record component
      version - the value for the version record component
      repositoryUrl - the value for the repositoryUrl record component
      releasesUrl - the value for the releasesUrl record component
      updatedManifestUrl - the value for the updatedManifestUrl record component
      distributor - the value for the distributor record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • repositoryUrl

      public String repositoryUrl()
      Returns the value of the repositoryUrl record component.
      Returns:
      the value of the repositoryUrl record component
    • releasesUrl

      public String releasesUrl()
      Returns the value of the releasesUrl record component.
      Returns:
      the value of the releasesUrl record component
    • updatedManifestUrl

      public String updatedManifestUrl()
      Returns the value of the updatedManifestUrl record component.
      Returns:
      the value of the updatedManifestUrl record component
    • distributor

      public String distributor()
      Returns the value of the distributor record component.
      Returns:
      the value of the distributor record component