Package ca.cgjennings.io
Enum FileChangeMonitor.ChangeType
- java.lang.Object
-
- java.lang.Enum<FileChangeMonitor.ChangeType>
-
- ca.cgjennings.io.FileChangeMonitor.ChangeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileChangeMonitor.ChangeType>
- Enclosing class:
- FileChangeMonitor
public static enum FileChangeMonitor.ChangeType extends java.lang.Enum<FileChangeMonitor.ChangeType>
The kind of change detected by the monitor.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileChangeMonitor.ChangeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileChangeMonitor.ChangeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final FileChangeMonitor.ChangeType CREATED
The file previously did not exist but now does.
-
DELETED
public static final FileChangeMonitor.ChangeType DELETED
The file previously existed but has been deleted.
-
MODIFIED
public static final FileChangeMonitor.ChangeType MODIFIED
The file has been modified.
-
-
Method Detail
-
values
public static FileChangeMonitor.ChangeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileChangeMonitor.ChangeType c : FileChangeMonitor.ChangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileChangeMonitor.ChangeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-