com.perforce.p4java.io.apple
Enum AppleFile.FileFormat

java.lang.Object
  extended by java.lang.Enum<AppleFile.FileFormat>
      extended by com.perforce.p4java.io.apple.AppleFile.FileFormat
All Implemented Interfaces:
Serializable, Comparable<AppleFile.FileFormat>
Enclosing class:
AppleFile

public static enum AppleFile.FileFormat
extends Enum<AppleFile.FileFormat>

The Apple file format.


Enum Constant Summary
APPLE_DOUBLE
           
APPLE_SINGLE
           
UNKNOWN
           
 
Method Summary
static AppleFile.FileFormat fromString(String fileFormat)
          Return a suitable Apple file format as inferred from the passed-in string.
static AppleFile.FileFormat valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromString

public static AppleFile.FileFormat fromString(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


Copyright © 2015 Perforce Software. All Rights Reserved.