0 Replies Latest reply on Nov 13, 2008 10:28 AM by Kamil Demecki

    Class.class as cache key - Generic Question

    Kamil Demecki Novice

      Hi All

      I'm writing simple cache which is based on: Java Concurrency in Practise", 09 2006, Listing 5.19 and have generic cache question.

      If java.lang.Class can be key for cache ? I know that java.lang.Class doesn't implement hashCode and equals but is only one instance per JVM.

      Googling like "java.lang.class key cache" or "java.lang.class equals" return nothing matters.