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 and 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 ObjectObject.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 Objectob - 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 Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-14-195246.buildd.src