|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.husky.Context.Key
public static class Context.Key
A key for attachements
| Constructor Summary | |
|---|---|
Context.Key(java.lang.Class<?> clazz,
java.lang.String name)
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 Context.Key |
valueOf(java.lang.String key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Context.Key(java.lang.Class<?> clazz,
java.lang.String name)
| Method Detail |
|---|
public static Context.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 | |||||||||