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