/** * Create a cache key. * * @param clazz the class to inspect * @param declaredOnly true if only declared elements, else inherited as well * @return the created key */ private Key createKey(Class<?> clazz, boolean declaredOnly) { return new Key(clazz, declaredOnly); }