Record Class CJ1MetadataElementMatchSpecific
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1MetadataElementMatchSpecific
- All Implemented Interfaces:
CJ1MetadataElementMatchType, CJ1ValueType
@JsonClassDescription("Match specific metadata elements.")
public record CJ1MetadataElementMatchSpecific(CJ1ComparisonExactType<com.io7m.lanark.core.RDottedName> packageName, CJ1ComparisonExactType<String> typeName, CJ1ComparisonExactType<String> fieldName, CJ1MetadataValueMatchType value)
extends Record
implements CJ1MetadataElementMatchType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1MetadataElementMatchSpecific(CJ1ComparisonExactType<com.io7m.lanark.core.RDottedName> packageName, CJ1ComparisonExactType<String> typeName, CJ1ComparisonExactType<String> fieldName, CJ1MetadataValueMatchType value) Creates an instance of aCJ1MetadataElementMatchSpecificrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.CJ1ComparisonExactType<com.io7m.lanark.core.RDottedName> Returns the value of thepackageNamerecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
CJ1MetadataElementMatchSpecific
public CJ1MetadataElementMatchSpecific(@JsonPropertyDescription("An expression that matches metadata package names.") CJ1ComparisonExactType<com.io7m.lanark.core.RDottedName> packageName, @JsonPropertyDescription("An expression that matches metadata type names.") CJ1ComparisonExactType<String> typeName, @JsonPropertyDescription("An expression that matches metadata field names.") CJ1ComparisonExactType<String> fieldName, @JsonPropertyDescription("An expression that matches metadata values.") CJ1MetadataValueMatchType value) Creates an instance of aCJ1MetadataElementMatchSpecificrecord class.- Parameters:
packageName- the value for thepackageNamerecord componenttypeName- the value for thetypeNamerecord componentfieldName- the value for thefieldNamerecord componentvalue- the value for thevaluerecord 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). -
packageName
@JsonPropertyDescription("An expression that matches metadata package names.") public CJ1ComparisonExactType<com.io7m.lanark.core.RDottedName> packageName()Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
typeName
@JsonPropertyDescription("An expression that matches metadata type names.") public CJ1ComparisonExactType<String> typeName()Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
fieldName
@JsonPropertyDescription("An expression that matches metadata field names.") public CJ1ComparisonExactType<String> fieldName()Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
value
@JsonPropertyDescription("An expression that matches metadata values.") public CJ1MetadataValueMatchType value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-