Record Class PossibleSelectors.SelectedAttributePairByUser
java.lang.Object
java.lang.Record
com.vaadin.copilot.testbenchgenerator.PossibleSelectors.SelectedAttributePairByUser
- Record Components:
attrName- Attribute name that will be used in withAttribute() as keyattrValue- Attribute value that will be used in withAttribute() as valuecomparisonType- exact or contains.
- Enclosing class:
PossibleSelectors
public static record PossibleSelectors.SelectedAttributePairByUser(String attrName, String attrValue, String comparisonType)
extends Record
Explicitly selected attribute by the user.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectedAttributePairByUser(String attrName, String attrValue, String comparisonType) Creates an instance of aSelectedAttributePairByUserrecord class. -
Method Summary
Modifier and TypeMethodDescriptionattrName()Returns the value of theattrNamerecord component.Returns the value of theattrValuerecord component.Returns the value of thecomparisonTyperecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SelectedAttributePairByUser
Creates an instance of aSelectedAttributePairByUserrecord class.- Parameters:
attrName- the value for theattrNamerecord componentattrValue- the value for theattrValuerecord componentcomparisonType- the value for thecomparisonTyperecord component
-
-
Method Details
-
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. -
attrName
Returns the value of theattrNamerecord component.- Returns:
- the value of the
attrNamerecord component
-
attrValue
Returns the value of theattrValuerecord component.- Returns:
- the value of the
attrValuerecord component
-
comparisonType
Returns the value of thecomparisonTyperecord component.- Returns:
- the value of the
comparisonTyperecord component
-