Class 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.
    • Constructor Summary

      Constructors 
      Constructor Description
      Snapshot​(java.util.Map<Name,​java.nio.file.attribute.FileTime> modifiedTimes)  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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