Record Class CAI1ItemSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1ItemSearchParameters
- Record Components:
fieldLocation- The item location search behaviour.fieldNameMatch- The item name match expression.fieldDescriptionMatch- The item description match expression.fieldTypeMatch- The item type match expression.fieldSerialMatch- The item serial match expression.fieldMetaMatch- The item metadata match expression.fieldOrder- The item result ordering.fieldLimit- The item limit.
- All Implemented Interfaces:
com.io7m.cedarbridge.runtime.api.CBSerializableType
public record CAI1ItemSearchParameters(CAI1ListLocationBehaviour fieldLocation, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldNameMatch, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldDescriptionMatch, CAI1ComparisonSet<com.io7m.cedarbridge.runtime.api.CBString> fieldTypeMatch, CAI1ComparisonExact<com.io7m.cedarbridge.runtime.api.CBString> fieldSerialMatch, CAI1MetadataElementMatch fieldMetaMatch, 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(CAI1ListLocationBehaviour fieldLocation, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldNameMatch, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldDescriptionMatch, CAI1ComparisonSet<com.io7m.cedarbridge.runtime.api.CBString> fieldTypeMatch, CAI1ComparisonExact<com.io7m.cedarbridge.runtime.api.CBString> fieldSerialMatch, CAI1MetadataElementMatch fieldMetaMatch, 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.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32Returns the value of thefieldLimitrecord component.Returns the value of thefieldLocationrecord 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.CAI1ComparisonExact<com.io7m.cedarbridge.runtime.api.CBString> Returns the value of thefieldSerialMatchrecord component.CAI1ComparisonSet<com.io7m.cedarbridge.runtime.api.CBString> 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(CAI1ListLocationBehaviour fieldLocation, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldNameMatch, CAI1ComparisonFuzzy<com.io7m.cedarbridge.runtime.api.CBString> fieldDescriptionMatch, CAI1ComparisonSet<com.io7m.cedarbridge.runtime.api.CBString> fieldTypeMatch, CAI1ComparisonExact<com.io7m.cedarbridge.runtime.api.CBString> fieldSerialMatch, CAI1MetadataElementMatch fieldMetaMatch, CAI1ItemColumnOrdering fieldOrder, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldLimit) Creates an instance of aCAI1ItemSearchParametersrecord class.- Parameters:
fieldLocation- the value for thefieldLocationrecord componentfieldNameMatch- the value for thefieldNameMatchrecord componentfieldDescriptionMatch- the value for thefieldDescriptionMatchrecord componentfieldTypeMatch- the value for thefieldTypeMatchrecord componentfieldSerialMatch- the value for thefieldSerialMatchrecord componentfieldMetaMatch- the value for thefieldMetaMatchrecord 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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
fieldLocation
Returns the value of thefieldLocationrecord component.- Returns:
- the value of the
fieldLocationrecord component
-
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
-
fieldSerialMatch
Returns the value of thefieldSerialMatchrecord component.- Returns:
- the value of the
fieldSerialMatchrecord component
-
fieldMetaMatch
Returns the value of thefieldMetaMatchrecord component.- Returns:
- the value of the
fieldMetaMatchrecord 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
-