Record Class CAI1StockOccurrence.Serial
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1StockOccurrence.Serial
- Record Components:
fieldInstance-fieldLocation-fieldItem-fieldSerials-
- All Implemented Interfaces:
CAI1StockOccurrence,com.io7m.cedarbridge.runtime.api.CBSerializableType
- Enclosing interface:
CAI1StockOccurrence
public static record CAI1StockOccurrence.Serial(com.io7m.cedarbridge.runtime.api.CBUUID fieldInstance, CAI1LocationSummary fieldLocation, CAI1ItemSummary fieldItem, com.io7m.cedarbridge.runtime.api.CBList<CAI1ItemSerial> fieldSerials)
extends Record
implements com.io7m.cedarbridge.runtime.api.CBSerializableType, CAI1StockOccurrence
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.cardant.protocol.inventory.cb.CAI1StockOccurrence
CAI1StockOccurrence.Serial, CAI1StockOccurrence.Set -
Constructor Summary
ConstructorsConstructorDescriptionSerial(com.io7m.cedarbridge.runtime.api.CBUUID fieldInstance, CAI1LocationSummary fieldLocation, CAI1ItemSummary fieldItem, com.io7m.cedarbridge.runtime.api.CBList<CAI1ItemSerial> fieldSerials) Creates an instance of aSerialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CAI1StockOccurrence.Serialdeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type com.io7m.cardant.protocol.inventory.cb.Serial.final booleanIndicates whether some other object is "equal to" this one.com.io7m.cedarbridge.runtime.api.CBUUIDReturns the value of thefieldInstancerecord component.Returns the value of thefieldItemrecord component.Returns the value of thefieldLocationrecord component.com.io7m.cedarbridge.runtime.api.CBList<CAI1ItemSerial> Returns the value of thefieldSerialsrecord component.final inthashCode()Returns a hash code value for this object.static voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1StockOccurrence.Serial $x) Serialize a value of type com.io7m.cardant.protocol.inventory.cb.Serial.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Serial
public Serial(com.io7m.cedarbridge.runtime.api.CBUUID fieldInstance, CAI1LocationSummary fieldLocation, CAI1ItemSummary fieldItem, com.io7m.cedarbridge.runtime.api.CBList<CAI1ItemSerial> fieldSerials) Creates an instance of aSerialrecord class.- Parameters:
fieldInstance- the value for thefieldInstancerecord componentfieldLocation- the value for thefieldLocationrecord componentfieldItem- the value for thefieldItemrecord componentfieldSerials- the value for thefieldSerialsrecord component
-
-
Method Details
-
serialize
public static void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1StockOccurrence.Serial $x) throws IOException Serialize a value of type com.io7m.cardant.protocol.inventory.cb.Serial.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static CAI1StockOccurrence.Serial deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type com.io7m.cardant.protocol.inventory.cb.Serial.- Parameters:
$context- The serialization context.- Returns:
- A value of type com.io7m.cardant.protocol.inventory.cb.Serial.
- Throws:
IOException
-
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). -
fieldInstance
public com.io7m.cedarbridge.runtime.api.CBUUID fieldInstance()Returns the value of thefieldInstancerecord component.- Returns:
- the value of the
fieldInstancerecord component
-
fieldLocation
Returns the value of thefieldLocationrecord component.- Returns:
- the value of the
fieldLocationrecord component
-
fieldItem
-
fieldSerials
Returns the value of thefieldSerialsrecord component.- Returns:
- the value of the
fieldSerialsrecord component
-