Record Class CAMetadataElementMatchType.Specific
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAMetadataElementMatchType.Specific
- Record Components:
packageName- The metadata type package nametypeName- The metadata type record namefieldName- The metadata type record field namevalue- The value
- All Implemented Interfaces:
CAMetadataElementMatchType
- Enclosing interface:
CAMetadataElementMatchType
public static record CAMetadataElementMatchType.Specific(CAComparisonExactType<com.io7m.lanark.core.RDottedName> packageName, CAComparisonExactType<String> typeName, CAComparisonExactType<String> fieldName, CAMetadataValueMatchType value)
extends Record
implements CAMetadataElementMatchType
Match a specific metadata field.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.cardant.model.CAMetadataElementMatchType
CAMetadataElementMatchType.And, CAMetadataElementMatchType.Or, CAMetadataElementMatchType.Specific -
Field Summary
Fields inherited from interface com.io7m.cardant.model.CAMetadataElementMatchType
ANYTHING -
Constructor Summary
ConstructorsConstructorDescriptionSpecific(CAComparisonExactType<com.io7m.lanark.core.RDottedName> packageName, CAComparisonExactType<String> typeName, CAComparisonExactType<String> fieldName, CAMetadataValueMatchType value) Match a specific metadata element. -
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.CAComparisonExactType<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
-
Specific
public Specific(CAComparisonExactType<com.io7m.lanark.core.RDottedName> packageName, CAComparisonExactType<String> typeName, CAComparisonExactType<String> fieldName, CAMetadataValueMatchType value) Match a specific metadata element.- Parameters:
packageName- The metadata type package nametypeName- The metadata type record namefieldName- The metadata type record field namevalue- The value
-
-
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
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
typeName
-
fieldName
-
value
-