Record Class RepositoryArtifactDigest
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryArtifactDigest
- Record Components:
coordinate- exact artifact coordinatealgorithm- digest algorithmvalue- lowercase digest valuesizeBytes- artifact size in bytes
- All Implemented Interfaces:
Serializable
public record RepositoryArtifactDigest(ApplicationCoordinate coordinate, String algorithm, String value, long sizeBytes)
extends Record
implements Serializable
Digest-addressed artifact identity.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryArtifactDigest(ApplicationCoordinate coordinate, String algorithm, String value, long sizeBytes) Creates a validated digest descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.Returns the value of thecoordinaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
RepositoryArtifactDigest
public RepositoryArtifactDigest(ApplicationCoordinate coordinate, String algorithm, String value, long sizeBytes) Creates a validated digest descriptor.
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
algorithm
-
value
-
sizeBytes
-