equal
deleted
inserted
replaced
51 private final NavigableMap<Long, Path> pathSet = new TreeMap<>(); |
51 private final NavigableMap<Long, Path> pathSet = new TreeMap<>(); |
52 private final Map<Path, Long> pathLookup = new HashMap<>(); |
52 private final Map<Path, Long> pathLookup = new HashMap<>(); |
53 private volatile boolean closed; |
53 private volatile boolean closed; |
54 |
54 |
55 public RepositoryFiles(SafePath repository) { |
55 public RepositoryFiles(SafePath repository) { |
56 this.repository = repository.toPath(); |
56 this.repository = repository == null ? null : repository.toPath(); |
57 } |
57 } |
58 |
58 |
59 public long getTimestamp(Path p) { |
59 public long getTimestamp(Path p) { |
60 return pathLookup.get(p); |
60 return pathLookup.get(p); |
61 } |
61 } |