Package com.atlassian.bamboo.utils.map
Class Key<T>
java.lang.Object
com.atlassian.bamboo.utils.map.Key<T>
- Type Parameters:
T
-
Allows type safe retrieval of a value from
TypedIdentityMap
-
Method Summary
Modifier and TypeMethodDescription<V> V
Casts the given object togetValueClass()
static <T> Key<T>
Creates a new Key typed by the givenClass
Gets theClass
type used for the Value stored against this keytoString()
-
Method Details
-
createKey
Creates a new Key typed by the givenClass
- Type Parameters:
T
-- Parameters:
clazz
- type of the value- Returns:
- key
-
getValueClass
Gets theClass
type used for the Value stored against this key- Returns:
- valueClass
-
cast
Casts the given object togetValueClass()
- Type Parameters:
V
-- Parameters:
value
-- Returns:
- casted value
-
toString
-