Package org.damap.base.domain
Enum Class DatasetSizeRange
- All Implemented Interfaces:
Serializable,Comparable<DatasetSizeRange>,Constable
DatasetSizeRange class.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Getter for the fieldlabel.static StringgetLabelForSize(long size) Retrieves the label for a given size.longGetter for the fieldmaxSize.longGetter for the fieldminSize.static DatasetSizeRangeReturns the enum constant of this class with the specified name.static DatasetSizeRange[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LESS_THAN_100MB
-
FROM_100MB_TO_1GB
-
FROM_1GB_TO_5GB
-
FROM_5GB_TO_20GB
-
FROM_20GB_TO_50GB
-
FROM_50GB_TO_100GB
-
FROM_100GB_TO_500GB
-
FROM_500GB_TO_1TB
-
FROM_1TB_TO_5TB
-
FROM_5TB_TO_10TB
-
FROM_10TB_TO_100TB
-
FROM_100TB_TO_500TB
-
FROM_500TB_TO_1PB
-
MORE_THAN_1PB
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getMinSize
public long getMinSize()Getter for the fieldminSize.- Returns:
- a long
-
getMaxSize
public long getMaxSize()Getter for the fieldmaxSize.- Returns:
- a long
-
getLabel
Getter for the fieldlabel.- Returns:
- a
Stringobject
-
getLabelForSize
Retrieves the label for a given size.- Parameters:
size- the size to evaluate- Returns:
- the corresponding label of the size range
-