Package org.syncany.database
Enum FileVersion.FileType
- java.lang.Object
-
- java.lang.Enum<FileVersion.FileType>
-
- org.syncany.database.FileVersion.FileType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileVersion.FileType>
- Enclosing class:
- FileVersion
public static enum FileVersion.FileType extends java.lang.Enum<FileVersion.FileType>
AFileVersion
can be of either one of the types in this enum. Types are treated differently during the index and synchronization process.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equalsName(java.lang.String otherName)
java.lang.String
toString()
static FileVersion.FileType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileVersion.FileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE
public static final FileVersion.FileType FILE
-
FOLDER
public static final FileVersion.FileType FOLDER
-
SYMLINK
public static final FileVersion.FileType SYMLINK
-
-
Method Detail
-
values
public static FileVersion.FileType[] 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 (FileVersion.FileType c : FileVersion.FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileVersion.FileType 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
-
equalsName
public boolean equalsName(java.lang.String otherName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<FileVersion.FileType>
-
-