|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.module.ModuleArchiveInfo
public class ModuleArchiveInfo
This class represents the information of an installed module archive in the repository.
Repository
,
Version
Constructor Summary | |
---|---|
ModuleArchiveInfo(String name,
Version version,
String platform,
String arch,
String fileName,
long lastModified)
Constructs a new ModuleArchiveInfo instance. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Compare two ModuleArchiveInfo objects for
equality. |
String |
getArchitecture()
Returns the name of the architecture of the module definition in the module archive. |
String |
getFileName()
Returns the filename of the module archive. |
long |
getLastModified()
Returns the last modified time of the module archive in the repository. |
String |
getName()
Returns the name of the module definition in the module archive. |
String |
getPlatform()
Returns the name of the platform of the module definition in the module archive. |
Version |
getVersion()
Returns the version of the module definition in the module archive. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleArchiveInfo(String name, Version version, String platform, String arch, String fileName, long lastModified)
ModuleArchiveInfo
instance.
name
- the name of the module definition in the module archive.version
- the version of the module definition in the module
archive.platform
- the platform of the module definition in the module
archive.arch
- the architecture of the module definition in the module
archive.fileName
- the filename of the module archive.lastModified
- the last modified time of the module archive.
NullPointerException
- if name is null, or version is null.
It is also thrown if platform or archive is provided, they
are not provided together, or if the last modified time is
less than 0.Method Detail |
---|
public String getName()
public Version getVersion()
public String getPlatform()
public String getArchitecture()
public String getFileName()
public long getLastModified()
public boolean equals(Object other)
ModuleArchiveInfo
objects for
equality. The result is true
if and only if
the argument is not null
and is a
ModuleArchiveInfo
object that is the same
instance as this ModuleArchiveInfo
.
equals
in class Object
other
- the object to compare with.
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |