public enum RetentionTimeUnit extends Enum<RetentionTimeUnit>
RetentionTimeUnit enumeration:
Represents time durations at a given unit of granularity
Enum Constant and Description |
---|
DAY
Day: Time Unit in Day
|
HOUR
Hour: Time Unit in Hour
|
MONTH
Month: Time Unit in Month
|
WEEK
Week: Time Unit in Week
|
YEAR
Year: Time Unit in Year
|
Modifier and Type | Method and Description |
---|---|
static RetentionTimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetentionTimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetentionTimeUnit DAY
public static final RetentionTimeUnit HOUR
public static final RetentionTimeUnit MONTH
public static final RetentionTimeUnit WEEK
public static final RetentionTimeUnit YEAR
public static RetentionTimeUnit[] values()
for (RetentionTimeUnit c : RetentionTimeUnit.values()) System.out.println(c);
public static RetentionTimeUnit 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 nullCopyright © 2015. All Rights Reserved.