|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.utils.map.Key<T>
T
- public final class Key<T>
Allows type safe retrieval of a value from TypedIdentityMap
Method Summary | ||
---|---|---|
|
cast(java.lang.Object value)
Casts the given object to getValueClass() |
|
static
|
createKey(java.lang.Class<T> clazz)
Creates a new Key typed by the given Class |
|
java.lang.Class<? extends T> |
getValueClass()
Gets the Class type used for the Value stored against this key |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <T> Key<T> createKey(java.lang.Class<T> clazz)
Class
T
- clazz
- type of the value
public java.lang.Class<? extends T> getValueClass()
Class
type used for the Value stored against this key
public <V> V cast(java.lang.Object value)
getValueClass()
V
- value
-
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |