Record Class CAICommandItemMetadataPut
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.CAICommandItemMetadataPut
- Record Components:
item- The item IDmetadatas- The metadata values
- All Implemented Interfaces:
CAProtocolMessageType, CAICommandType<CAIResponseItemMetadataPut>, CAIMessageType, com.io7m.hibiscus.api.HBMessageType
public record CAICommandItemMetadataPut(CAItemID item, Set<CAMetadataType> metadatas)
extends Record
implements CAICommandType<CAIResponseItemMetadataPut>
Add or update metadata values in an item.
-
Constructor Summary
ConstructorsConstructorDescriptionCAICommandItemMetadataPut(CAItemID item, Set<CAMetadataType> metadatas) Add or update metadata values in an item. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.Returns the value of themetadatasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAICommandItemMetadataPut
Add or update metadata values in an item.
-
-
Method Details
-
responseClass
- Specified by:
responseClassin interfaceCAICommandType<CAIResponseItemMetadataPut>- Returns:
- The response class associated with this command (excluding the error response)
-
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). -
item
-
metadatas
-