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)
ClassT - 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 © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.