|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.Attachments.Key
public static class Attachments.Key
A key for attachements
| Constructor Summary | |
|---|---|
Attachments.Key(java.lang.String name,
java.lang.Class<?> clazz)
Construct the key with optional class and name |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Two keys are equal if their toString() is equal |
java.lang.Class<?> |
getClassPart()
Get the class part for this key |
java.lang.String |
getNamePart()
Get the name part for this key |
int |
hashCode()
Two keys have the same hashCode if their toString() is equal |
java.lang.String |
toString()
Returns the String repesentation of this Key. |
static Attachments.Key |
valueOf(java.lang.String key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attachments.Key(java.lang.String name,
java.lang.Class<?> clazz)
| Method Detail |
|---|
public static Attachments.Key valueOf(java.lang.String key)
public java.lang.Class<?> getClassPart()
public java.lang.String getNamePart()
public boolean equals(java.lang.Object obj)
toString() is equal
equals in class java.lang.Objectpublic int hashCode()
toString() is equal
hashCode in class java.lang.Objectpublic java.lang.String toString()
"[" + clazz + "," + name + "]"
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||