ClassValue

Class ClassValue<T>

public abstract class ClassValue<T>
extends Object

Lazily associate a computed value with (potentially) every type. For example, if a dynamic language needs to construct a message dispatch table for each class encountered at a message send call site, it can use a ClassValue to cache information needed to perform the message send quickly, for each class encountered.

Since:
1.7

Constructors

ClassValue

protected ClassValue()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Methods

登录查看完整内容