public enum RetentionPeriod extends Enum<RetentionPeriod>
| Enum Constant and Description |
|---|
ONE_MONTH |
SIX_MONTHS |
THREE_MONTHS |
UNLIMITED |
| Modifier and Type | Method and Description |
|---|---|
Optional<Period> |
get() |
static RetentionPeriod |
ofMonths(Integer months) |
static RetentionPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetentionPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetentionPeriod ONE_MONTH
public static final RetentionPeriod THREE_MONTHS
public static final RetentionPeriod SIX_MONTHS
public static final RetentionPeriod UNLIMITED
public static RetentionPeriod[] values()
for (RetentionPeriod c : RetentionPeriod.values()) System.out.println(c);
public static RetentionPeriod 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 static RetentionPeriod ofMonths(Integer months)
Copyright © 2023 Atlassian. All rights reserved.