Package com.vaadin.copilot
Record Class UIServiceCreator.ServiceAndBeanInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.UIServiceCreator.ServiceAndBeanInfo
- Record Components:
beanInfo- the information about the beandataStorage- the type of data storagebrowserCallable- whether the service can be called from the browserexampleData- 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 Summary
ConstructorsConstructorDescriptionServiceAndBeanInfo(UIServiceCreator.BeanInfo beanInfo, UIServiceCreator.DataStorage dataStorage, boolean browserCallable, List<Map<String, Object>> exampleData, String servicePackageName, String repositoryPackageName) Creates an instance of aServiceAndBeanInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbeanInfo()Returns the value of thebeanInforecord component.booleanReturns the value of thebrowserCallablerecord component.Returns the value of thedataStoragerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexampleDatarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therepositoryPackageNamerecord component.Returns the value of theservicePackageNamerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aServiceAndBeanInforecord class.- Parameters:
beanInfo- the value for thebeanInforecord componentdataStorage- the value for thedataStoragerecord componentbrowserCallable- the value for thebrowserCallablerecord componentexampleData- the value for theexampleDatarecord componentservicePackageName- the value for theservicePackageNamerecord componentrepositoryPackageName- the value for therepositoryPackageNamerecord component
-
-
Method Details
-
getBeanName
-
getRepositoryName
-
getServiceName
-
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 '=='. -
beanInfo
Returns the value of thebeanInforecord component.- Returns:
- the value of the
beanInforecord component
-
dataStorage
Returns the value of thedataStoragerecord component.- Returns:
- the value of the
dataStoragerecord component
-
browserCallable
public boolean browserCallable()Returns the value of thebrowserCallablerecord component.- Returns:
- the value of the
browserCallablerecord component
-
exampleData
Returns the value of theexampleDatarecord component.- Returns:
- the value of the
exampleDatarecord component
-
servicePackageName
Returns the value of theservicePackageNamerecord component.- Returns:
- the value of the
servicePackageNamerecord component
-
repositoryPackageName
Returns the value of therepositoryPackageNamerecord component.- Returns:
- the value of the
repositoryPackageNamerecord component
-