Deprecated
This class has been deprecated in favor of name strings; however, programs using identifiers will continue to function correctly.
| Modifier and Type | Field and Description |
|---|---|
| public static final ModuleIdentifier | CLASSPATH
The class path module (only present if booted from a class path). |
| private static final String | |
| private transient volatile int | |
| private final String | |
| private static final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static ModuleIdentifier | Returns: the identifierthe name of the module name, String the slot this module belongs in slot)
Deprecated
as a consequence of
Creates a new module identifier using the specified name and slot.
ModuleIdentifier being deprecated.
|
| public static ModuleIdentifier | Returns: the identifierthe name of the module name)
Deprecated
as a consequence of
Creates a new module identifier using the specified name.
ModuleIdentifier being deprecated.
|
| public boolean | Returns: true if they are equal, false otherwisethe other object other)Overrides java. |
| public boolean | Returns: true if they are equal, false otherwisethe other object other)
Deprecated
as a consequence of
Determine whether this object is equal to another.
ModuleIdentifier being deprecated.
|
| private static String | |
| private static String | |
| public static ModuleIdentifier | Returns: the module identifierthe specification string moduleSpec)
Deprecated
as a consequence of
Parse a module specification from a string.
ModuleIdentifier being deprecated.
|
| public String | |
| public String | |
| public int | Returns: the hash codeOverrides java. |
| private void | |
| public String | Returns: the string representationOverrides java. |
| CLASSPATH | back to summary |
|---|---|
| public static final ModuleIdentifier CLASSPATH
Deprecated as a consequence of The class path module (only present if booted from a class path). | |
| DEFAULT_SLOT | back to summary |
|---|---|
| private static final String DEFAULT_SLOT | |
| hashCode | back to summary |
|---|---|
| private transient volatile int hashCode | |
| name | back to summary |
|---|---|
| private final String name | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| slot | back to summary |
|---|---|
| private final String slot | |
| ModuleIdentifier | back to summary |
|---|---|
| private ModuleIdentifier(final String name, final String slot) | |
| calculateHashCode | back to summary |
|---|---|
| private static int calculateHashCode(final String name, final String slot) | |
| create | back to summary |
|---|---|
| public static ModuleIdentifier create(final String name, String slot)
Deprecated as a consequence of Creates a new module identifier using the specified name and slot.
A slot allows for multiple modules to exist with the same name.
The main usage pattern for this is to differentiate between
two incompatible release streams of a module.
Normally all module definitions wind up in the "main" slot.
An unspecified or null slot will result in placement in the "main"
slot.
Unless you have a true need for a slot, it should not be specified.
When in doubt use the {
| |
| create | back to summary |
|---|---|
| public static ModuleIdentifier create(String name)
Deprecated as a consequence of Creates a new module identifier using the specified name.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Determine whether this object is equal to another.
| |
| equals | back to summary |
|---|---|
| public boolean equals(ModuleIdentifier other)
Deprecated as a consequence of Determine whether this object is equal to another.
| |
| escapeName | back to summary |
|---|---|
| private static String escapeName(String name) | |
| escapeSlot | back to summary |
|---|---|
| private static String escapeSlot(String slot) | |
| fromString | back to summary |
|---|---|
| public static ModuleIdentifier fromString(String moduleSpec) throws IllegalArgumentException
Deprecated as a consequence of Parse a module specification from a string.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the module name.
| |
| getSlot | back to summary |
|---|---|
| public String getSlot() Get the module version slot.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Determine the hash code of this module identifier.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Get the string representation of this module identifier. | |