Package MySTARS
Enum FileType
java.lang.Object
java.lang.Enum<FileType>
MySTARS.FileType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileType>
,java.lang.constant.Constable
public enum FileType extends java.lang.Enum<FileType>
FileType Enum that corresponds to the different files that the Application will use.
- Since:
- 2020-11-1
- Version:
- 1.0
- Author:
- Bhargav
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
fileName
A String value for the FileType so that it is easy to retrieve. -
Constructor Summary
Constructors Modifier Constructor Description private
FileType(java.lang.String fileName)
Initialiser for the FileType Enum. -
Method Summary
-
Enum Constant Details
-
Field Details
-
fileName
public final java.lang.String fileNameA String value for the FileType so that it is easy to retrieve.
-
-
Constructor Details
-
FileType
private FileType(java.lang.String fileName)Initialiser for the FileType Enum.- Parameters:
fileName
- Assigns a fileName to each Enum value so files are easy to retrieve.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-