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