Class FileChangedEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class FileChangedEvent
    extends Event
    The event raised when the file is changed
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    File, Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FileChangedEvent.Kind
      The Kind of File Changed Event
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getFile()  
      FileChangedEvent.Kind getKind()
      Get the kind of File changed
      java.lang.String toString()  
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FileChangedEvent

        public FileChangedEvent​(java.io.File file,
                                FileChangedEvent.Kind kind)
                         throws java.lang.IllegalArgumentException
        Constructs a prototypical Event.
        Parameters:
        file - The object on which the Event initially occurred.
        kind - the kind of File changed
        Throws:
        java.lang.IllegalArgumentException - if file or kind is null.
    • Method Detail

      • getFile

        public java.io.File getFile()
        Returns:
        The file as the event source
      • toString

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