Record Class CJ1MetadataElementMatchAnd
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1MetadataElementMatchAnd
- All Implemented Interfaces:
CJ1MetadataElementMatchType, CJ1ValueType
@JsonClassDescription("Match metadata elements that match both expressions.")
public record CJ1MetadataElementMatchAnd(CJ1MetadataElementMatchType e0, CJ1MetadataElementMatchType e1)
extends Record
implements CJ1MetadataElementMatchType
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aCJ1MetadataElementMatchAndrecord class. -
Method Summary
Modifier and TypeMethodDescriptione0()Returns the value of thee0record component.e1()Returns the value of thee1record component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1MetadataElementMatchAnd
public CJ1MetadataElementMatchAnd(@JsonPropertyDescription("The left expression.") CJ1MetadataElementMatchType e0, @JsonPropertyDescription("The right expression.") CJ1MetadataElementMatchType e1) Creates an instance of aCJ1MetadataElementMatchAndrecord class.- Parameters:
e0- the value for thee0record componente1- the value for thee1record component
-
-
Method Details
-
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). -
e0
Returns the value of thee0record component.- Returns:
- the value of the
e0record component
-
e1
Returns the value of thee1record component.- Returns:
- the value of the
e1record component
-