APIdia Launch Partner
Top Description Fields Constructors Methods
java.lang.module

public final Class ResolvedModule

extends Object
Class Inheritance
Imports
java.util.Objects, .Set

A module in a graph of resolved modules.

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.

Since
9
See Also
Configuration#modules()

Field Summary

Modifier and TypeField and Description
private final Configuration
private final ModuleReference

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Configuration

Returns:

The configuration that this resolved module is in
configuration
()

Returns the configuration that this resolved module is in.

pack-priv ModuleDescriptor

Returns:

The module descriptor
descriptor
()

Returns the module descriptor.

public boolean

Returns:

true if, and only if, the given object is a module reference that is equal to this module reference
equals
(Object
the object to which this object is to be compared
ob
)

Overrides java.lang.Object.equals.

Tests this resolved module for equality with the given object.

public int

Returns:

The hash-code value for this resolved module
hashCode
()

Overrides java.lang.Object.hashCode.

Computes a hash code for this resolved module.

public String

Returns:

The module name
name
()

Returns the module name.

public Set<ResolvedModule>

Returns:

A possibly-empty unmodifiable set of resolved modules that this resolved module reads
reads
()

Returns the set of resolved modules that this resolved module reads.

public ModuleReference

Returns:

The reference to the module's content
reference
()

Returns the reference to the module's content.

public String

Returns:

A string describing this resolved module
toString
()

Overrides java.lang.Object.toString.

Returns a string describing this resolved module.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

cfback to summary
private final Configuration cf
mrefback to summary
private final ModuleReference mref

Constructor Detail

ResolvedModuleback to summary
pack-priv ResolvedModule(Configuration cf, ModuleReference mref)

Method Detail

configurationback to summary
public Configuration configuration()

Returns the configuration that this resolved module is in.

Returns:Configuration

The configuration that this resolved module is in

descriptorback to summary
pack-priv ModuleDescriptor descriptor()

Returns the module descriptor. This convenience method is the equivalent to invoking:

 reference().descriptor()
Returns:ModuleDescriptor

The module descriptor

equalsback to summary
public boolean equals(Object ob)

Overrides java.lang.Object.equals.

Tests this resolved module for equality with the given object.

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.

Parameters
ob:Object

the object to which this object is to be compared

Returns:boolean

true if, and only if, the given object is a module reference that is equal to this module reference

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Computes a hash code for this resolved module.

The hash code is based upon the components of the resolved module and satisfies the general contract of the Object.hashCode method.

Returns:int

The hash-code value for this resolved module

Annotations
@Override
nameback to summary
public String name()

Returns the module name. This convenience method is the equivalent to invoking:

 reference().descriptor().name()
Returns:String

The module name

readsback to summary
public Set<ResolvedModule> reads()

Returns the set of resolved modules that this resolved module reads. The readability relation is reflexive (every module reads itself). The set of resolved modules returned by this method does not include itself.

Returns:Set<ResolvedModule>

A possibly-empty unmodifiable set of resolved modules that this resolved module reads

referenceback to summary
public ModuleReference reference()

Returns the reference to the module's content.

Returns:ModuleReference

The reference to the module's content

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string describing this resolved module.

Returns:String

A string describing this resolved module

Annotations
@Override