ClassValue<T>, the Cache That Dies With the Class 0 ▲ belief driven design 77 days ago · Tech · hide · Fediverse post Caching something per class is one of the most ordinary things many libraries do. And a Class<?> looks like the perfect map key: there’s exactly one instance per class per loader, its identity hash is stable, and equals is identity comparison. Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town