Record Class CAI1StockOccurrence.Set
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1StockOccurrence.Set
- Record Components:
fieldInstance-fieldLocation-fieldItem-fieldCount-
- All Implemented Interfaces:
CAI1StockOccurrence,com.io7m.cedarbridge.runtime.api.CBSerializableType
- Enclosing interface:
CAI1StockOccurrence
public static record CAI1StockOccurrence.Set(com.io7m.cedarbridge.runtime.api.CBUUID fieldInstance, CAI1LocationSummary fieldLocation, CAI1ItemSummary fieldItem, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldCount)
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
ConstructorsConstructorDescriptionSet(com.io7m.cedarbridge.runtime.api.CBUUID fieldInstance, CAI1LocationSummary fieldLocation, CAI1ItemSummary fieldItem, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldCount) Creates an instance of aSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CAI1StockOccurrence.Setdeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type com.io7m.cardant.protocol.inventory.cb.Set.final booleanIndicates whether some other object is "equal to" this one.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64Returns the value of thefieldCountrecord component.com.io7m.cedarbridge.runtime.api.CBUUIDReturns the value of thefieldInstancerecord component.Returns the value of thefieldItemrecord component.Returns the value of thefieldLocationrecord component.final inthashCode()Returns a hash code value for this object.static voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1StockOccurrence.Set $x) Serialize a value of type com.io7m.cardant.protocol.inventory.cb.Set.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Set
public Set(com.io7m.cedarbridge.runtime.api.CBUUID fieldInstance, CAI1LocationSummary fieldLocation, CAI1ItemSummary fieldItem, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldCount) Creates an instance of aSetrecord class.- Parameters:
fieldInstance- the value for thefieldInstancerecord componentfieldLocation- the value for thefieldLocationrecord componentfieldItem- the value for thefieldItemrecord componentfieldCount- the value for thefieldCountrecord component
-
-
Method Details
-
serialize
public static void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1StockOccurrence.Set $x) throws IOException Serialize a value of type com.io7m.cardant.protocol.inventory.cb.Set.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static CAI1StockOccurrence.Set deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type com.io7m.cardant.protocol.inventory.cb.Set.- Parameters:
$context- The serialization context.- Returns:
- A value of type com.io7m.cardant.protocol.inventory.cb.Set.
- 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
-
fieldCount
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldCount()Returns the value of thefieldCountrecord component.- Returns:
- the value of the
fieldCountrecord component
-