Package com.perforce.p4java.io.apple
Enum AppleFile.FileFormat
- java.lang.Object
-
- java.lang.Enum<AppleFile.FileFormat>
-
- com.perforce.p4java.io.apple.AppleFile.FileFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AppleFile.FileFormat>
- Enclosing class:
- AppleFile
public static enum AppleFile.FileFormat extends java.lang.Enum<AppleFile.FileFormat>
The Apple file format.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLE_DOUBLE
APPLE_SINGLE
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AppleFile.FileFormat
fromString(java.lang.String fileFormat)
Return a suitable Apple file format as inferred from the passed-in string.static AppleFile.FileFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AppleFile.FileFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPLE_SINGLE
public static final AppleFile.FileFormat APPLE_SINGLE
-
APPLE_DOUBLE
public static final AppleFile.FileFormat APPLE_DOUBLE
-
UNKNOWN
public static final AppleFile.FileFormat UNKNOWN
-
-
Method Detail
-
values
public static AppleFile.FileFormat[] 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 (AppleFile.FileFormat c : AppleFile.FileFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AppleFile.FileFormat 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
-
fromString
public static AppleFile.FileFormat fromString(java.lang.String fileFormat)
Return a suitable Apple file format as inferred from the passed-in string. Otherwise return the UNKNOWN file format.- Parameters:
fileFormat
- the file format- Returns:
- the FileFormat
-
-