Record Class CJ1FileWithoutData
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1FileWithoutData
- All Implemented Interfaces:
CJ1FileType, CJ1ValueType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1FileWithoutData
public CJ1FileWithoutData(@JsonPropertyDescription("The file ID.") UUID id, @JsonPropertyDescription("The file description.") String description, @JsonPropertyDescription("The file media type.") String mediaType, @JsonPropertyDescription("The file size.") long size, @JsonPropertyDescription("The file hash algorithm.") String hashAlgorithm, @JsonPropertyDescription("The file hash value.") String hashValue) Creates an instance of aCJ1FileWithoutDatarecord class.- Parameters:
id- the value for theidrecord componentdescription- the value for thedescriptionrecord componentmediaType- the value for themediaTyperecord componentsize- the value for thesizerecord componenthashAlgorithm- the value for thehashAlgorithmrecord componenthashValue- the value for thehashValuerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-
size
@JsonPropertyDescription("The file size.") public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord 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
-