Package org.apache.camel.main.download
Record Class DownloadRecord
java.lang.Object
java.lang.Record
org.apache.camel.main.download.DownloadRecord
public record DownloadRecord(String groupId, String artifactId, String version, String repoId, String repoUrl, long elapsed)
extends Record
Record for details when an artifact was downloaded from a remote Maven repository.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.longelapsed()Returns the value of theelapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.repoId()Returns the value of therepoIdrecord component.repoUrl()Returns the value of therepoUrlrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
DownloadRecord
public DownloadRecord(String groupId, String artifactId, String version, String repoId, String repoUrl, long elapsed) Creates an instance of aDownloadRecordrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentversion- the value for theversionrecord componentrepoId- the value for therepoIdrecord componentrepoUrl- the value for therepoUrlrecord componentelapsed- the value for theelapsedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
repoId
Returns the value of therepoIdrecord component.- Returns:
- the value of the
repoIdrecord component
-
repoUrl
Returns the value of therepoUrlrecord component.- Returns:
- the value of the
repoUrlrecord component
-
elapsed
public long elapsed()Returns the value of theelapsedrecord component.- Returns:
- the value of the
elapsedrecord component
-