Record Class CAI1Page<T extends com.io7m.cedarbridge.runtime.api.CBSerializableType>
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1Page<T>
- Type Parameters:
T-- Record Components:
fieldItems-fieldPageIndex-fieldPageCount-fieldPageFirstOffset-
- All Implemented Interfaces:
com.io7m.cedarbridge.runtime.api.CBSerializableType
public record CAI1Page<T extends com.io7m.cedarbridge.runtime.api.CBSerializableType>(com.io7m.cedarbridge.runtime.api.CBList<T extends com.io7m.cedarbridge.runtime.api.CBSerializableType> fieldItems, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageIndex, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageCount, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldPageFirstOffset)
extends Record
implements com.io7m.cedarbridge.runtime.api.CBSerializableType
A page of search results.
-
Constructor Summary
ConstructorsConstructorDescriptionCAI1Page(com.io7m.cedarbridge.runtime.api.CBList<T> fieldItems, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageIndex, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageCount, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldPageFirstOffset) Creates an instance of aCAI1Pagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends com.io7m.cedarbridge.runtime.api.CBSerializableType>
CAI1Page<T> deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, com.io7m.cedarbridge.runtime.api.CBDeserializeType<T> $deserializeT) Deserialize a value of type CAI1Page.final booleanIndicates whether some other object is "equal to" this one.com.io7m.cedarbridge.runtime.api.CBList<T> Returns the value of thefieldItemsrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32Returns the value of thefieldPageCountrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64Returns the value of thefieldPageFirstOffsetrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32Returns the value of thefieldPageIndexrecord component.final inthashCode()Returns a hash code value for this object.static <T extends com.io7m.cedarbridge.runtime.api.CBSerializableType>
voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1Page<T> $x, com.io7m.cedarbridge.runtime.api.CBSerializeType<T> $serializeT) Serialize a value of type CAI1Page.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAI1Page
public CAI1Page(com.io7m.cedarbridge.runtime.api.CBList<T> fieldItems, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageIndex, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageCount, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldPageFirstOffset) Creates an instance of aCAI1Pagerecord class.- Parameters:
fieldItems- the value for thefieldItemsrecord componentfieldPageIndex- the value for thefieldPageIndexrecord componentfieldPageCount- the value for thefieldPageCountrecord componentfieldPageFirstOffset- the value for thefieldPageFirstOffsetrecord component
-
-
Method Details
-
serialize
public static <T extends com.io7m.cedarbridge.runtime.api.CBSerializableType> void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1Page<T> $x, com.io7m.cedarbridge.runtime.api.CBSerializeType<T> $serializeT) throws IOException Serialize a value of type CAI1Page.- Type Parameters:
T- The type of one or more serialized fields.- Parameters:
$context- The serialization context.$x- The value to be serialized.$serializeT- A serializer for values of type T.- Throws:
IOException
-
deserialize
public static <T extends com.io7m.cedarbridge.runtime.api.CBSerializableType> CAI1Page<T> deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, com.io7m.cedarbridge.runtime.api.CBDeserializeType<T> $deserializeT) throws IOException Deserialize a value of type CAI1Page.- Type Parameters:
T- The type of one or more deserialized fields.- Parameters:
$context- The serialization context.$deserializeT- A deserializer for values of type T.- Returns:
- A value of type CAI1Page.
- 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). -
fieldItems
Returns the value of thefieldItemsrecord component.- Returns:
- the value of the
fieldItemsrecord component
-
fieldPageIndex
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageIndex()Returns the value of thefieldPageIndexrecord component.- Returns:
- the value of the
fieldPageIndexrecord component
-
fieldPageCount
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldPageCount()Returns the value of thefieldPageCountrecord component.- Returns:
- the value of the
fieldPageCountrecord component
-
fieldPageFirstOffset
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldPageFirstOffset()Returns the value of thefieldPageFirstOffsetrecord component.- Returns:
- the value of the
fieldPageFirstOffsetrecord component
-