V
- the type of value in this ClassLocalpublic class ClassLocal<V> extends ClassValue<V>
Modifier and Type | Method and Description |
---|---|
protected V |
computeValue(Class<?> type) |
static <V> ClassLocal<V> |
withInitial(java.util.function.Function<Class,V> classVFunction)
Function to create a value to cache information associated with a Class
|
get, remove
public static <V> ClassLocal<V> withInitial(java.util.function.Function<Class,V> classVFunction)
V
- the type of value in this ClassLocalclassVFunction
- to generate the associated value.protected V computeValue(Class<?> type)
computeValue
in class ClassValue<V>
Copyright © 2015. All rights reserved.