Record Class CustomComponentExternal
java.lang.Object
java.lang.Record
com.vaadin.copilot.customcomponent.CustomComponentExternal
- Record Components:
componentClass- Class instance of custom component
- All Implemented Interfaces:
CustomComponent
public record CustomComponentExternal(Class<?> componentClass)
extends Record
implements CustomComponent
Contains information for custom components that are defined outside the
project. e.g. addon, external maven libraries etc...
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.copilot.customcomponent.CustomComponent
CustomComponent.Type -
Constructor Summary
ConstructorsConstructorDescriptionCustomComponentExternal(Class<?> componentClass) Creates an instance of aCustomComponentExternalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Returns the value of thecomponentClassrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()Type of custom component.final inthashCode()Returns a hash code value for this object.booleanChecks if the component extends LitTemplate.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vaadin.copilot.customcomponent.CustomComponent
getChildAddableMethods
-
Constructor Details
-
CustomComponentExternal
Creates an instance of aCustomComponentExternalrecord class.- Parameters:
componentClass- the value for thecomponentClassrecord component
-
-
Method Details
-
getType
Description copied from interface:CustomComponentType of custom component.- Specified by:
getTypein interfaceCustomComponent- Returns:
- type
-
litTemplate
public boolean litTemplate()Description copied from interface:CustomComponentChecks if the component extends LitTemplate.- Specified by:
litTemplatein interfaceCustomComponent- Returns:
- true if it is a LitTemplate, false otherwise
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
componentClass
Returns the value of thecomponentClassrecord component.- Specified by:
componentClassin interfaceCustomComponent- Returns:
- the value of the
componentClassrecord component
-