Package fr.gouv.vitam.common.model.dip
Enum BinarySizePlatformThreshold.SizeUnit
- java.lang.Object
-
- java.lang.Enum<BinarySizePlatformThreshold.SizeUnit>
-
- fr.gouv.vitam.common.model.dip.BinarySizePlatformThreshold.SizeUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BinarySizePlatformThreshold.SizeUnit>
- Enclosing class:
- BinarySizePlatformThreshold
public static enum BinarySizePlatformThreshold.SizeUnit extends java.lang.Enum<BinarySizePlatformThreshold.SizeUnit>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getByteCount()
static BinarySizePlatformThreshold.SizeUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BinarySizePlatformThreshold.SizeUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final BinarySizePlatformThreshold.SizeUnit BYTE
-
KILOBYTE
public static final BinarySizePlatformThreshold.SizeUnit KILOBYTE
-
MEGABYTE
public static final BinarySizePlatformThreshold.SizeUnit MEGABYTE
-
GIGABYTE
public static final BinarySizePlatformThreshold.SizeUnit GIGABYTE
-
-
Method Detail
-
values
public static BinarySizePlatformThreshold.SizeUnit[] 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 (BinarySizePlatformThreshold.SizeUnit c : BinarySizePlatformThreshold.SizeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinarySizePlatformThreshold.SizeUnit 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
-
getByteCount
public long getByteCount()
-
-