public final class ModuleIdentifier extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static ModuleIdentifier |
CLASSPATH
The class path module (only present if booted from a class path).
|
Modifier and Type | Method and Description |
---|---|
static ModuleIdentifier |
create(String name)
Creates a new module identifier using the specified name.
|
static ModuleIdentifier |
create(String name,
String slot)
Creates a new module identifier using the specified name and slot.
|
boolean |
equals(ModuleIdentifier other)
Determine whether this object is equal to another.
|
boolean |
equals(Object other)
Determine whether this object is equal to another.
|
static ModuleIdentifier |
fromString(String moduleSpec)
Parse a module specification from a string.
|
String |
getName()
Get the module name.
|
String |
getSlot()
Get the module version slot.
|
int |
hashCode()
Determine the hash code of this module identifier.
|
String |
toString()
Get the string representation of this module identifier.
|
public static final ModuleIdentifier CLASSPATH
public String getName()
public String getSlot()
public boolean equals(Object other)
public boolean equals(ModuleIdentifier other)
other
- the other objecttrue
if they are equal, false
otherwisepublic int hashCode()
public String toString()
public static ModuleIdentifier fromString(String moduleSpec) throws IllegalArgumentException
moduleSpec
- the specification stringIllegalArgumentException
- if the format of the module specification is invalid or it is null
public static ModuleIdentifier create(String name, String slot)
create(String)
method instead.name
- the name of the moduleslot
- the slot this module belongs inpublic static ModuleIdentifier create(String name)
name
- the name of the moduleCopyright © 2017 JBoss by Red Hat. All rights reserved.