Class AbstractWatchService.Event<T>

  • All Implemented Interfaces:
    java.nio.file.WatchEvent<T>
    Enclosing class:
    AbstractWatchService

    static final class AbstractWatchService.Event<T>
    extends java.lang.Object
    implements java.nio.file.WatchEvent<T>
    A basic implementation of WatchEvent.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.nio.file.WatchEvent

        java.nio.file.WatchEvent.Kind<T extends java.lang.Object>, java.nio.file.WatchEvent.Modifier
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private @Nullable T context  
      private int count  
      private java.nio.file.WatchEvent.Kind<T> kind  
    • Constructor Summary

      Constructors 
      Constructor Description
      Event​(java.nio.file.WatchEvent.Kind<T> kind, int count, @Nullable T context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable T context()  
      int count()  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.nio.file.WatchEvent.Kind<T> kind()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • kind

        private final java.nio.file.WatchEvent.Kind<T> kind
      • count

        private final int count
      • context

        private final @Nullable T context
    • Constructor Detail

      • Event

        public Event​(java.nio.file.WatchEvent.Kind<T> kind,
                     int count,
                     @Nullable T context)
    • Method Detail

      • kind

        public java.nio.file.WatchEvent.Kind<T> kind()
        Specified by:
        kind in interface java.nio.file.WatchEvent<T>
      • count

        public int count()
        Specified by:
        count in interface java.nio.file.WatchEvent<T>
      • context

        public @Nullable T context()
        Specified by:
        context in interface java.nio.file.WatchEvent<T>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object