public enum DATA_RANGE_IN_MB extends Enum<DATA_RANGE_IN_MB>
Modifier and Type | Method and Description |
---|---|
static DATA_RANGE_IN_MB |
getRange(long sizeInBytes) |
int |
getSizeInMB() |
static DATA_RANGE_IN_MB |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DATA_RANGE_IN_MB[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DATA_RANGE_IN_MB THOUSAND
public static final DATA_RANGE_IN_MB HUNDRED
public static final DATA_RANGE_IN_MB TEN
public static final DATA_RANGE_IN_MB ONE
public static final DATA_RANGE_IN_MB ZERO
public static DATA_RANGE_IN_MB[] values()
for (DATA_RANGE_IN_MB c : DATA_RANGE_IN_MB.values()) System.out.println(c);
public static DATA_RANGE_IN_MB valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getSizeInMB()
public static final DATA_RANGE_IN_MB getRange(long sizeInBytes)
Copyright © 2016 Apache Software Foundation. All rights reserved.