@ExperimentalApi public enum AuditingRetentionPeriod extends Enum<AuditingRetentionPeriod>
Enum Constant and Description |
---|
ONE_MONTH |
SIX_MONTHS |
THREE_MONTHS |
UNLIMITED |
Modifier and Type | Method and Description |
---|---|
static AuditingRetentionPeriod |
getByValue(String value) |
static AuditingRetentionPeriod |
getDefault() |
String |
getNameI18nKey() |
static List<AuditingRetentionPeriod> |
getValidValues() |
String |
getValue() |
boolean |
isShorterThan(AuditingRetentionPeriod that) |
boolean |
isUnlimited() |
org.joda.time.DateTime |
monthsIntoPast() |
static AuditingRetentionPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuditingRetentionPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuditingRetentionPeriod ONE_MONTH
public static final AuditingRetentionPeriod THREE_MONTHS
public static final AuditingRetentionPeriod SIX_MONTHS
public static final AuditingRetentionPeriod UNLIMITED
public static AuditingRetentionPeriod[] values()
for (AuditingRetentionPeriod c : AuditingRetentionPeriod.values()) System.out.println(c);
public static AuditingRetentionPeriod 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 String getValue()
public String getNameI18nKey()
@Nullable public static AuditingRetentionPeriod getByValue(String value)
public static List<AuditingRetentionPeriod> getValidValues()
public static AuditingRetentionPeriod getDefault()
public boolean isShorterThan(AuditingRetentionPeriod that)
public boolean isUnlimited()
public org.joda.time.DateTime monthsIntoPast()
Copyright © 2002-2019 Atlassian. All Rights Reserved.