Record Class WrapWithComponentListFinder.ClassNameInfo

java.lang.Object
java.lang.Record
com.vaadin.copilot.WrapWithComponentListFinder.ClassNameInfo
Record Components:
qualifiedClassName - qualified class name e.g. com.flow.component.Html.Div
baseName - the simple class name e.g. VerticalLayout
createdInUserProject - represents whether components is created in Flow or inside the Project
htmlElement - represents if the given element is a basic HTML element
Enclosing class:
WrapWithComponentListFinder

public static record WrapWithComponentListFinder.ClassNameInfo(String qualifiedClassName, String baseName, boolean createdInUserProject, boolean htmlElement) extends Record
Info about the class name
  • Constructor Details

    • ClassNameInfo

      public ClassNameInfo(String qualifiedClassName, String baseName, boolean createdInUserProject, boolean htmlElement)
      Creates an instance of a ClassNameInfo record class.
      Parameters:
      qualifiedClassName - the value for the qualifiedClassName record component
      baseName - the value for the baseName record component
      createdInUserProject - the value for the createdInUserProject record component
      htmlElement - the value for the htmlElement record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • qualifiedClassName

      public String qualifiedClassName()
      Returns the value of the qualifiedClassName record component.
      Returns:
      the value of the qualifiedClassName record component
    • baseName

      public String baseName()
      Returns the value of the baseName record component.
      Returns:
      the value of the baseName record component
    • createdInUserProject

      public boolean createdInUserProject()
      Returns the value of the createdInUserProject record component.
      Returns:
      the value of the createdInUserProject record component
    • htmlElement

      public boolean htmlElement()
      Returns the value of the htmlElement record component.
      Returns:
      the value of the htmlElement record component