Module com.github.sormuras.bach
Record Class SingleExternalModuleLocator
java.lang.Object
java.lang.Record
com.github.sormuras.bach.external.SingleExternalModuleLocator
- All Implemented Interfaces:
ExternalModuleLocator
public record SingleExternalModuleLocator(String module, String uri)
extends Record
implements ExternalModuleLocator
-
Constructor Summary
ConstructorDescriptionSingleExternalModuleLocator
(String module, String uri) Creates an instance of aSingleExternalModuleLocator
record class. -
Method Summary
Modifier and TypeMethodDescriptioncaption()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.module()
Returns the value of themodule
record component.final String
toString()
Returns a string representation of this record class.uri()
Returns the value of theuri
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.sormuras.bach.ExternalModuleLocator
find
-
Constructor Details
-
SingleExternalModuleLocator
Creates an instance of aSingleExternalModuleLocator
record class.- Parameters:
module
- the value for themodule
record componenturi
- the value for theuri
record component
-
-
Method Details
-
locate
- Specified by:
locate
in interfaceExternalModuleLocator
-
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
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)
. -
module
Returns the value of themodule
record component.- Returns:
- the value of the
module
record component
-
uri
Returns the value of theuri
record component.- Returns:
- the value of the
uri
record component