Record Class Artifact
java.lang.Object
java.lang.Record
com.darkcollective.relix.processor.connector.Artifact
One downloadable JAR — a URL and its expected SHA-256 (lower-case hex) — shared by
the connector-plugin catalog (
ConnectorCatalog) and the JDBC driver catalog
a connector provider keeps (DriverCatalog, in relix-connectors-std).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fileName()The file name to store the JAR under, derived from the URL's last path segment.final inthashCode()Returns a hash code value for this object.sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Artifact
Creates an instance of aArtifactrecord class.- Parameters:
url- the value for theurlrecord componentsha256- the value for thesha256record component
-
-
Method Details
-
fileName
The file name to store the JAR under, derived from the URL's last path segment. -
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). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
sha256
Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-