Enum Class Ttl
- All Implemented Interfaces:
Serializable,Comparable<Ttl>,Constable
TTL enums for index layer.
All the values are converted to days. For example, `OneMonth` is 30 days and `OneYear` is 365 days.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription15 days120 days548 days30 days365 days7 days180 days90 days60 days730 days -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
SevenDays
7 days -
FifteenDays
15 days -
OneMonth
30 days -
TwoMonths
60 days -
ThreeMonths
90 days -
FourMonths
120 days -
SixMonths
180 days -
OneYear
365 days -
OneAndHalfYears
548 days -
TwoYears
730 days -
Unlimited
-
-
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
-
toString
-
valueOfIgnoreCase
-