Package lu.kbra.modelizer_next.bootstrap
Record Class BootstrapConfig
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.bootstrap.BootstrapConfig
- Record Components:
name- name value to read, write, or displayversion- text value for versionrepositoryUrl- URL to usereleasesUrl- URL to useupdatedManifestUrl- URL to usedistributor- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistributorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thereleasesUrlrecord component.Returns the value of therepositoryUrlrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedManifestUrlrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
BootstrapConfig
public BootstrapConfig(String name, String version, String repositoryUrl, String releasesUrl, String updatedManifestUrl, String distributor) Creates an instance of aBootstrapConfigrecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentrepositoryUrl- the value for therepositoryUrlrecord componentreleasesUrl- the value for thereleasesUrlrecord componentupdatedManifestUrl- the value for theupdatedManifestUrlrecord componentdistributor- the value for thedistributorrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
repositoryUrl
Returns the value of therepositoryUrlrecord component.- Returns:
- the value of the
repositoryUrlrecord component
-
releasesUrl
Returns the value of thereleasesUrlrecord component.- Returns:
- the value of the
releasesUrlrecord component
-
updatedManifestUrl
Returns the value of theupdatedManifestUrlrecord component.- Returns:
- the value of the
updatedManifestUrlrecord component
-
distributor
Returns the value of thedistributorrecord component.- Returns:
- the value of the
distributorrecord component
-