Package com.google.common.jimfs
Class PollingWatchService.Snapshot
- java.lang.Object
-
- com.google.common.jimfs.PollingWatchService.Snapshot
-
- Enclosing class:
- PollingWatchService
private final class PollingWatchService.Snapshot extends java.lang.Object
Snapshot of the state of a directory at a particular moment.
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<Name,java.nio.file.attribute.FileTime>
modifiedTimes
Maps directory entry names to last modified times.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
postChanges(PollingWatchService.Snapshot newState, AbstractWatchService.Key key)
Posts events to the given key based on the kinds of events it subscribes to and what events have occurred between this state and the given new state.
-
-
-
Field Detail
-
modifiedTimes
private final com.google.common.collect.ImmutableMap<Name,java.nio.file.attribute.FileTime> modifiedTimes
Maps directory entry names to last modified times.
-
-
Constructor Detail
-
Snapshot
Snapshot(java.util.Map<Name,java.nio.file.attribute.FileTime> modifiedTimes)
-
-
Method Detail
-
postChanges
boolean postChanges(PollingWatchService.Snapshot newState, AbstractWatchService.Key key)
Posts events to the given key based on the kinds of events it subscribes to and what events have occurred between this state and the given new state.
-
-