|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.module.ImportDependency
public class ImportDependency
This class represents an import dependency of the module definition.
VersionConstraint
Constructor Summary | |
---|---|
ImportDependency(String name,
VersionConstraint constraint)
Constructs a ImportDependency . |
|
ImportDependency(String name,
VersionConstraint constraint,
boolean reexport,
boolean optional)
Constructs a ImportDependency . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare two ImportDependency objects for equality. |
String |
getModuleName()
Returns the name of the imported module definition in an import dependency. |
VersionConstraint |
getVersionConstraint()
Returns the version constraint of the import dependency. |
int |
hashCode()
Returns a hash code for this ImportDependency . |
boolean |
isOptional()
Returns true if the imported module definition is optional. |
boolean |
isReexported()
Returns true if the imported module definition is re-exported. |
String |
toString()
Returns a String object representing this
ImportDependency . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportDependency(String name, VersionConstraint constraint)
ImportDependency
.
The imported module definition is assumed to be neither re-exported nor optional.
name
- the name of the imported module definition.constraint
- the version constraint of the import dependency.
NullPointerException
- if name is null or constraint is null.public ImportDependency(String name, VersionConstraint constraint, boolean reexport, boolean optional)
ImportDependency
.
name
- the name of the imported module definition.constraint
- the version constraint of the import dependency.reexport
- true if the imported module definition is re-exported;
otherwise, false.optional
- true if the imported module definition is optional;
otherwise, false.
NullPointerException
- if name is null or constraint is null.Method Detail |
---|
public String getModuleName()
public VersionConstraint getVersionConstraint()
public boolean isReexported()
public boolean isOptional()
public boolean equals(Object obj)
ImportDependency
objects for equality. The
result is true
if and only if the argument is not
null
and is a ImportDependency
object that
imported module name, version constraint, reexport, and optional the
same as those of this ImportDependency
.
equals
in class Object
obj
- the object to compare with.
public int hashCode()
ImportDependency
.
hashCode
in class Object
public String toString()
String
object representing this
ImportDependency
.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |