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.
Configuration.modules()
Modifier and Type | Method | Description |
---|---|---|
Configuration |
configuration() |
Returns the configuration that this resolved module is in.
|
boolean |
equals(Object ob) |
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<ResolvedModule> |
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.
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
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.
equals
in class Object
ob
- the object to which this object is to be comparedtrue
if, and only if, the given object is a module
reference that is equal to this module referenceObject.hashCode()
,
HashMap
Copyright © 1993, 2017, Oracle and/or its affiliates · All rights reserved · License