Record Class SchemaNodeTest
java.lang.Object
java.lang.Record
org.rumbledb.expressions.xml.node_test.SchemaNodeTest
- All Implemented Interfaces:
Serializable,NodeTest
Uses the same resolved schema declaration for axis steps and sequence-type matching.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaNodeTest(ItemType itemType) Creates an instance of aSchemaNodeTestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.itemType()Returns the value of theitemTyperecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SchemaNodeTest
Creates an instance of aSchemaNodeTestrecord class.- Parameters:
itemType- the value for theitemTyperecord component
-
-
Method Details
-
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). -
itemType
Returns the value of theitemTyperecord component.- Returns:
- the value of the
itemTyperecord component
-