Record Class DefaultESModuleLoader.CanonicalModuleKey
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.objects.DefaultESModuleLoader.CanonicalModuleKey
- Enclosing class:
DefaultESModuleLoader
-
Constructor Summary
ConstructorsConstructorDescriptionCanonicalModuleKey(String canonicalPath, Map<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> importAttributes) Creates an instance of aCanonicalModuleKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> Returns the value of theimportAttributesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CanonicalModuleKey
public CanonicalModuleKey(String canonicalPath, Map<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> importAttributes) Creates an instance of aCanonicalModuleKeyrecord class.- Parameters:
canonicalPath- the value for thecanonicalPathrecord componentimportAttributes- the value for theimportAttributesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
canonicalPath
Returns the value of thecanonicalPathrecord component.- Returns:
- the value of the
canonicalPathrecord component
-
importAttributes
public Map<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> importAttributes()Returns the value of theimportAttributesrecord component.- Returns:
- the value of the
importAttributesrecord component
-