Package com.vaadin.flow.js.internal
Record Class JsDefinitionImports.ModuleImport
java.lang.Object
java.lang.Record
com.vaadin.flow.js.internal.JsDefinitionImports.ModuleImport
- Record Components:
from- the module as it is declaredbindings- the names given from the module, in the order they are declared
- All Implemented Interfaces:
Serializable
- Enclosing class:
JsDefinitionImports
public static record JsDefinitionImports.ModuleImport(String from, List<JsDefinitionImports.Binding> bindings)
extends Record
implements Serializable
A module that an interface imports from, with every name it is given from
it, merged from all the annotations that name the module.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModuleImport(String from, List<JsDefinitionImports.Binding> bindings) Creates an instance of aModuleImportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbindings()Returns the value of thebindingsrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-