public static class Attachments.Key extends Object
Constructor and Description |
---|
Attachments.Key(String name,
Class<?> clazz)
Construct the key with optional class and name
|
Modifier and Type | Method and Description |
---|---|
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) |
public static Attachments.Key valueOf(String key)
public Class<?> getClassPart()
public String getNamePart()
public boolean equals(Object obj)
toString()
is equalpublic int hashCode()
toString()
is equalCopyright © 2012 JBoss by Red Hat. All Rights Reserved.