Top Inners Fields Constructors Methods
java.io

pack-priv abstract Class ClassCache<T>

extends Object
Class Inheritance
Imports
java.lang.ref.Reference, .ReferenceQueue, .SoftReference, java.util.Objects

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final ClassValue<ClassCache.CacheRef<T>>
private final ReferenceQueue<T>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract T
pack-priv T
get(Class<?> cl)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapback to summary
private final ClassValue<ClassCache.CacheRef<T>> map
queueback to summary
private final ReferenceQueue<T> queue

Constructor Detail

ClassCacheback to summary
protected ClassCache()

Method Detail

computeValueback to summary
protected abstract T computeValue(Class<?> cl)
getback to summary
pack-priv T get(Class<?> cl)
processQueueback to summary
private void processQueue()
java.io back to summary

private Class ClassCache.CacheRef<T>

extends SoftReference<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private T
private final Class<?>

Constructor Summary

AccessConstructor and Description
pack-priv
CacheRef(T referent, ReferenceQueue<T> queue, Class<?> type)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv T
pack-priv Class<?>
Inherited from java.lang.ref.SoftReference:
get

Field Detail

strongReferentback to summary
private T strongReferent
typeback to summary
private final Class<?> type

Constructor Detail

CacheRefback to summary
pack-priv CacheRef(T referent, ReferenceQueue<T> queue, Class<?> type)

Method Detail

clearStrongback to summary
pack-priv void clearStrong()
getStrongback to summary
pack-priv T getStrong()
getTypeback to summary
pack-priv Class<?> getType()