public final class ResolvedModule extends Object
ResolvedModule
defines the configuration
method to get the configuration that the resolved module is in. It defines the reference
method to get the reference to the module's content.
Modifier and Type | Method | Description |
---|---|---|
Configuration |
configuration() |
Returns the configuration that this resolved module is in. |
boolean |
equals |
Tests this resolved module for equality with the given object. |
int |
hashCode() |
Computes a hash code for this resolved module. |
String |
name() |
Returns the module name. |
Set |
reads() |
Returns the set of resolved modules that this resolved module reads. |
ModuleReference |
reference() |
Returns the reference to the module's content. |
String |
toString() |
Returns a string describing this resolved module. |
public Configuration configuration()
public ModuleReference reference()
public String name()
reference().descriptor().name()
public Set<ResolvedModule> reads()
public int hashCode()
The hash code is based upon the components of the resolved module and satisfies the general contract of the Object.hashCode
method.
public boolean equals(Object ob)
If the given object is not a ResolvedModule
then this method returns false
. Two ResolvedModule
objects are equal if they are in the same configuration and have equal references to the module content.
This method satisfies the general contract of the Object.equals
method.
public String toString()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/module/ResolvedModule.html