Package io.microsphere.io.event
Class FileChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- io.microsphere.event.Event
-
- io.microsphere.io.event.FileChangedEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class FileChangedEvent extends Event
The event raised when thefileis changed- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
File, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileChangedEvent.KindThe Kind of File Changed Event
-
Constructor Summary
Constructors Constructor Description FileChangedEvent(java.io.File file, FileChangedEvent.Kind kind)Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetFile()FileChangedEvent.KindgetKind()Get the kind ofFilechangedjava.lang.StringtoString()-
Methods inherited from class io.microsphere.event.Event
getTimestamp
-
-
-
-
Constructor Detail
-
FileChangedEvent
public FileChangedEvent(java.io.File file, FileChangedEvent.Kind kind) throws java.lang.IllegalArgumentExceptionConstructs a prototypical Event.- Parameters:
file- The object on which the Event initially occurred.kind- the kind ofFilechanged- Throws:
java.lang.IllegalArgumentException- iffileorkindis null.
-
-
Method Detail
-
getFile
public java.io.File getFile()
- Returns:
- The file as the event source
-
getKind
public FileChangedEvent.Kind getKind()
Get the kind ofFilechanged- Returns:
FileChangedEvent.Kind
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.EventObject
-
-