public final class ClassKey extends Object implements Comparable<ClassKey>, Serializable
The reason for having a separate key class instead of
Class as key is mostly
to allow for redefining
hashCode method --
for some strange reason,
Class does not
Object.hashCode() and thus uses identity
hash, which is pretty slow. This makes key access using
Class unnecessarily slow.
Note: since class is not strictly immutable, caller must know what it is doing, if changing field values.
public ClassKey(Class<?> clz)
public void reset(Class<?> clz)
public int compareTo(ClassKey other)
Copyright © 2008–2017 FasterXML. All rights reserved.