public static final class ModuleDescriptor.Exports extends Object
A module export, may be qualified or unqualified.
ModuleDescriptor.exports()
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object ob) |
Tests this module export for equality with the given object.
|
int |
hashCode() |
Computes a hash code for this module export.
|
boolean |
isQualified() |
Returns
true if this is a qualified export. |
String |
source() |
Returns the package name.
|
Set<String> |
targets() |
For a qualified export, returns the non-empty and immutable set
of the module names to which the package is exported.
|
String |
toString() |
Returns a string describing module export.
|
public boolean isQualified()
true
if this is a qualified export.true
if this is a qualified exportpublic String source()
public Set<String> targets()
public int hashCode()
The hash code is based upon the package name, and for a
qualified export, the set of modules names to which the package
is exported. It 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 an Exports
then this method
returns false
. Two module exports objects are equal if the
package names are equal and the set of target module names is equal.
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
dependence that is equal to this module dependenceObject.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-10-04-161205.jjg.dev.8159855.tools-spi