Record Class ArtifactUrlResolver.DownloadDescriptor
java.lang.Object
java.lang.Record
org.eclipse.hawkbit.artifact.urlresolver.ArtifactUrlResolver.DownloadDescriptor
- Enclosing interface:
ArtifactUrlResolver
public static record ArtifactUrlResolver.DownloadDescriptor(String tenant, String controllerId, Long softwareModuleId, String filename, String sha1)
extends Record
Container for variables available to the
ArtifactUrlResolver.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrollerIdrecord component.final booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.sha1()Returns the value of thesha1record component.Returns the value of thesoftwareModuleIdrecord component.tenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DownloadDescriptor
public DownloadDescriptor(String tenant, String controllerId, Long softwareModuleId, String filename, String sha1) Creates an instance of aDownloadDescriptorrecord class.- Parameters:
tenant- the value for thetenantrecord componentcontrollerId- the value for thecontrollerIdrecord componentsoftwareModuleId- the value for thesoftwareModuleIdrecord componentfilename- the value for thefilenamerecord componentsha1- the value for thesha1record 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). -
tenant
Returns the value of thetenantrecord component.- Returns:
- the value of the
tenantrecord component
-
controllerId
Returns the value of thecontrollerIdrecord component.- Returns:
- the value of the
controllerIdrecord component
-
softwareModuleId
Returns the value of thesoftwareModuleIdrecord component.- Returns:
- the value of the
softwareModuleIdrecord component
-
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
sha1
Returns the value of thesha1record component.- Returns:
- the value of the
sha1record component
-