Yogeesh Hegde
Yogeesh Hegde

Reputation: 31

What is the use of ClassValue<T> in java?

I currently looking to master every classes in Java.lang but couldn't understand the use of ClassValue. I have seen the official documentation, it says,

public abstract class ClassValue 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.

Please help me, I am very curious..

Upvotes: 2

Views: 99

Answers (0)

Related Questions