1 package org.simantics.acorn;
3 import java.nio.file.Path;
4 import java.util.HashMap;
7 import org.simantics.db.Disposable;
10 * @author Tuukka Lehtonen
13 public class FileCache implements Disposable {
15 private Map<Path, FileIO> map = new HashMap<>();
17 public FileIO get(Path path) {
19 return map.computeIfAbsent(path, FileIO::new);
24 public void dispose() {
25 map = new HashMap<>();