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