Record Class CJ1FileWithData
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1FileWithData
- All Implemented Interfaces:
CJ1FileType,CJ1ValueType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehashAlgorithmrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehashValuerecord component.id()Returns the value of theidrecord component.Returns the value of themediaTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1FileWithData
public CJ1FileWithData(@JsonPropertyDescription("The file ID.") UUID id, @JsonPropertyDescription("The file description.") String description, @JsonPropertyDescription("The file media type.") String mediaType, @JsonPropertyDescription("The file hash algorithm.") String hashAlgorithm, @JsonPropertyDescription("The file hash value.") String hashValue, @JsonPropertyDescription("The file data.") byte[] data) Creates an instance of aCJ1FileWithDatarecord class.- Parameters:
id- the value for theidrecord componentdescription- the value for thedescriptionrecord componentmediaType- the value for themediaTyperecord componenthashAlgorithm- the value for thehashAlgorithmrecord componenthashValue- the value for thehashValuerecord componentdata- the value for thedatarecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-
hashAlgorithm
Returns the value of thehashAlgorithmrecord component.- Returns:
- the value of the
hashAlgorithmrecord component
-
hashValue
Returns the value of thehashValuerecord component.- Returns:
- the value of the
hashValuerecord component
-
data
@JsonPropertyDescription("The file data.") public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-