Package tigase.xml
Record Class ElementMatcher.Attribute
java.lang.Object
java.lang.Record
tigase.xml.ElementMatcher.Attribute
- Record Components:
name-value-
- Enclosing class:
ElementMatcher
public static record ElementMatcher.Attribute(@NonNull String name, @Nullable String value)
extends Record
Class holds attribute name and value to match against
Element using ElementMatcher-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@NonNull Stringname()Returns the value of thenamerecord component.protected static @NonNull ElementMatcher.Attributeparse(@NonNull Path.State state) final StringtoString()Returns a string representation of this record class.@Nullable Stringvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
parse
protected static @NonNull ElementMatcher.Attribute parse(@NonNull Path.State state) throws Path.PathFormatException - Throws:
Path.PathFormatException
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-