/** * Add a new mapping to the cache. * * @param parentPathId The parent's path ID (actually, a directory ID). * @param childPathName The name of the path within that parent's directory. * @param childPathId The child's path ID to be used as the target of the mapping. * @param childType What type is the child (file, directory, etc), to be used as the target of the * mapping. */ public void put(int parentPathId, String childPathName, int childPathId, int childType) { PathNameCacheKey key = new PathNameCacheKey(parentPathId, childPathName); PathNameCacheValue value = new PathNameCacheValue(childPathId, childType); map.put(key, value); }