Enum ProgressUnit
- java.lang.Object
-
- java.lang.Enum<ProgressUnit>
-
- com.perforce.p4java.server.callback.progress.ProgressUnit
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProgressUnit>
public enum ProgressUnit extends java.lang.Enum<ProgressUnit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELTASDIRSFILESITEMSK_BYTESM_BYTESPERCENTAGEUNSPECIFIED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProgressUnitgetType(int value)static ProgressUnitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProgressUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final ProgressUnit UNSPECIFIED
-
PERCENTAGE
public static final ProgressUnit PERCENTAGE
-
FILES
public static final ProgressUnit FILES
-
K_BYTES
public static final ProgressUnit K_BYTES
-
M_BYTES
public static final ProgressUnit M_BYTES
-
DELTAS
public static final ProgressUnit DELTAS
-
ITEMS
public static final ProgressUnit ITEMS
-
DIRS
public static final ProgressUnit DIRS
-
-
Method Detail
-
values
public static ProgressUnit[] 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 (ProgressUnit c : ProgressUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgressUnit 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
-
getType
public static ProgressUnit getType(int value)
-
-