Record Class CAI1ItemSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1ItemSearchParameters
- Record Components:
fieldNameMatch- The item name match expression.fieldDescriptionMatch- The item description match expression.fieldTypeMatch- The item type match expression.fieldMetaMatch- The item metadata match expression.fieldIncludeDeleted- Include live/deleted data.fieldOrder- The item result ordering.fieldLimit- The item limit.
- All Implemented Interfaces:
com.io7m.cedarbridge.runtime.api.CBSerializableType
public record CAI1ItemSearchParameters(CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldNameMatch, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldDescriptionMatch, CAI1ComparisonSet<CAI1TypeRecordIdentifier> fieldTypeMatch, CAI1MetadataElementMatch fieldMetaMatch, CAI1IncludeDeleted fieldIncludeDeleted, CAI1ItemColumnOrdering fieldOrder, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldLimit)
extends Record
implements com.io7m.cedarbridge.runtime.api.CBSerializableType
The item search parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCAI1ItemSearchParameters(CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldNameMatch, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldDescriptionMatch, CAI1ComparisonSet<CAI1TypeRecordIdentifier> fieldTypeMatch, CAI1MetadataElementMatch fieldMetaMatch, CAI1IncludeDeleted fieldIncludeDeleted, CAI1ItemColumnOrdering fieldOrder, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldLimit) Creates an instance of aCAI1ItemSearchParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CAI1ItemSearchParametersdeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type CAI1ItemSearchParameters.final booleanIndicates whether some other object is "equal to" this one.CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> Returns the value of thefieldDescriptionMatchrecord component.Returns the value of thefieldIncludeDeletedrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32Returns the value of thefieldLimitrecord component.Returns the value of thefieldMetaMatchrecord component.CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> Returns the value of thefieldNameMatchrecord component.Returns the value of thefieldOrderrecord component.Returns the value of thefieldTypeMatchrecord component.final inthashCode()Returns a hash code value for this object.static voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1ItemSearchParameters $x) Serialize a value of type CAI1ItemSearchParameters.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAI1ItemSearchParameters
public CAI1ItemSearchParameters(CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldNameMatch, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldDescriptionMatch, CAI1ComparisonSet<CAI1TypeRecordIdentifier> fieldTypeMatch, CAI1MetadataElementMatch fieldMetaMatch, CAI1IncludeDeleted fieldIncludeDeleted, CAI1ItemColumnOrdering fieldOrder, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldLimit) Creates an instance of aCAI1ItemSearchParametersrecord class.- Parameters:
fieldNameMatch- the value for thefieldNameMatchrecord componentfieldDescriptionMatch- the value for thefieldDescriptionMatchrecord componentfieldTypeMatch- the value for thefieldTypeMatchrecord componentfieldMetaMatch- the value for thefieldMetaMatchrecord componentfieldIncludeDeleted- the value for thefieldIncludeDeletedrecord componentfieldOrder- the value for thefieldOrderrecord componentfieldLimit- the value for thefieldLimitrecord component
-
-
Method Details
-
serialize
public static void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1ItemSearchParameters $x) throws IOException Serialize a value of type CAI1ItemSearchParameters.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static CAI1ItemSearchParameters deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type CAI1ItemSearchParameters.- Parameters:
$context- The serialization context.- Returns:
- A value of type CAI1ItemSearchParameters.
- 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). -
fieldNameMatch
Returns the value of thefieldNameMatchrecord component.- Returns:
- the value of the
fieldNameMatchrecord component
-
fieldDescriptionMatch
Returns the value of thefieldDescriptionMatchrecord component.- Returns:
- the value of the
fieldDescriptionMatchrecord component
-
fieldTypeMatch
Returns the value of thefieldTypeMatchrecord component.- Returns:
- the value of the
fieldTypeMatchrecord component
-
fieldMetaMatch
Returns the value of thefieldMetaMatchrecord component.- Returns:
- the value of the
fieldMetaMatchrecord component
-
fieldIncludeDeleted
Returns the value of thefieldIncludeDeletedrecord component.- Returns:
- the value of the
fieldIncludeDeletedrecord component
-
fieldOrder
Returns the value of thefieldOrderrecord component.- Returns:
- the value of the
fieldOrderrecord component
-
fieldLimit
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldLimit()Returns the value of thefieldLimitrecord component.- Returns:
- the value of the
fieldLimitrecord component
-