Package com.vaadin.copilot
Record Class UserApplicationComponentFinder.ClassNameInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.UserApplicationComponentFinder.ClassNameInfo
- Record Components:
qualifiedClassName- qualified class name e.g. com.flow.component.Html.DivbaseName- the simple class name e.g. VerticalLayoutcreatedInUserProject- whether the class belongs to the user project rather than Vaadin FlowhtmlElement- whether the class represents a basic HTML element
- Enclosing class:
UserApplicationComponentFinder
public static record UserApplicationComponentFinder.ClassNameInfo(String qualifiedClassName, String baseName, boolean createdInUserProject, boolean htmlElement)
extends Record
Describes a component class found by this finder.
-
Constructor Summary
ConstructorsConstructorDescriptionClassNameInfo(String qualifiedClassName, String baseName, boolean createdInUserProject, boolean htmlElement) Creates an instance of aClassNameInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseName()Returns the value of thebaseNamerecord component.booleanReturns the value of thecreatedInUserProjectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehtmlElementrecord component.Returns the value of thequalifiedClassNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassNameInfo
public ClassNameInfo(String qualifiedClassName, String baseName, boolean createdInUserProject, boolean htmlElement) Creates an instance of aClassNameInforecord class.- Parameters:
qualifiedClassName- the value for thequalifiedClassNamerecord componentbaseName- the value for thebaseNamerecord componentcreatedInUserProject- the value for thecreatedInUserProjectrecord componenthtmlElement- the value for thehtmlElementrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
qualifiedClassName
Returns the value of thequalifiedClassNamerecord component.- Returns:
- the value of the
qualifiedClassNamerecord component
-
baseName
Returns the value of thebaseNamerecord component.- Returns:
- the value of the
baseNamerecord component
-
createdInUserProject
public boolean createdInUserProject()Returns the value of thecreatedInUserProjectrecord component.- Returns:
- the value of the
createdInUserProjectrecord component
-
htmlElement
public boolean htmlElement()Returns the value of thehtmlElementrecord component.- Returns:
- the value of the
htmlElementrecord component
-