T
- public final class Key<T> extends Object
TypedIdentityMap
Modifier and Type | Method and Description |
---|---|
<V> V |
cast(Object value)
Casts the given object to
getValueClass() |
static <T> Key<T> |
createKey(Class<T> clazz)
Creates a new Key typed by the given
Class |
Class<? extends T> |
getValueClass()
Gets the
Class type used for the Value stored against this key |
String |
toString() |
public static <T> Key<T> createKey(Class<T> clazz)
Class
T
- clazz
- type of the valuepublic Class<? extends T> getValueClass()
Class
type used for the Value stored against this keypublic <V> V cast(Object value)
getValueClass()
V
- value
- Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.