public class ExtensionKey extends Object implements ObjectKey<Extension<?>>
Extension
Constructor and Description |
---|
ExtensionKey(Extension<?> ext)
Create a new key for an extension.
|
ExtensionKey(String id)
Create a new key for an extension with the given id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toDescription()
Get a string description of the key that is suitable for use
in (error) messages to users.
|
String |
toString() |
private final String id
public ExtensionKey(String id)
id
- The id (required)public ExtensionKey(Extension<?> ext)
ext
- The extension point (required)public String toDescription()
ObjectKey
toDescription
in interface ObjectKey<Extension<?>>