Record Class UIServiceCreator.ServiceAndBeanInfo

java.lang.Object
java.lang.Record
com.vaadin.copilot.UIServiceCreator.ServiceAndBeanInfo
Record Components:
beanInfo - the information about the bean
dataStorage - the type of data storage
browserCallable - whether the service can be called from the browser
exampleData - example data to use or null to not generate example data
Enclosing class:
UIServiceCreator

public static record UIServiceCreator.ServiceAndBeanInfo(UIServiceCreator.BeanInfo beanInfo, UIServiceCreator.DataStorage dataStorage, boolean browserCallable, List<Map<String,Object>> exampleData, String servicePackageName, String repositoryPackageName) extends Record
Represents information about a service and its associated bean.
  • Constructor Details

    • ServiceAndBeanInfo

      public ServiceAndBeanInfo(UIServiceCreator.BeanInfo beanInfo, UIServiceCreator.DataStorage dataStorage, boolean browserCallable, List<Map<String,Object>> exampleData, String servicePackageName, String repositoryPackageName)
      Creates an instance of a ServiceAndBeanInfo record class.
      Parameters:
      beanInfo - the value for the beanInfo record component
      dataStorage - the value for the dataStorage record component
      browserCallable - the value for the browserCallable record component
      exampleData - the value for the exampleData record component
      servicePackageName - the value for the servicePackageName record component
      repositoryPackageName - the value for the repositoryPackageName record component
  • Method Details

    • getBeanName

      public String getBeanName()
    • getRepositoryName

      public String getRepositoryName()
    • getServiceName

      public String getServiceName()
    • 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.
    • beanInfo

      public UIServiceCreator.BeanInfo beanInfo()
      Returns the value of the beanInfo record component.
      Returns:
      the value of the beanInfo record component
    • dataStorage

      public UIServiceCreator.DataStorage dataStorage()
      Returns the value of the dataStorage record component.
      Returns:
      the value of the dataStorage record component
    • browserCallable

      public boolean browserCallable()
      Returns the value of the browserCallable record component.
      Returns:
      the value of the browserCallable record component
    • exampleData

      public List<Map<String,Object>> exampleData()
      Returns the value of the exampleData record component.
      Returns:
      the value of the exampleData record component
    • servicePackageName

      public String servicePackageName()
      Returns the value of the servicePackageName record component.
      Returns:
      the value of the servicePackageName record component
    • repositoryPackageName

      public String repositoryPackageName()
      Returns the value of the repositoryPackageName record component.
      Returns:
      the value of the repositoryPackageName record component