Package tigase.archive
Enum RetentionType
- java.lang.Object
-
- java.lang.Enum<RetentionType>
-
- tigase.archive.RetentionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RetentionType>
public enum RetentionType extends java.lang.Enum<RetentionType>
- Author:
- andrzej
-
-
Enum Constant Summary
Enum Constants Enum Constant Description numberOfDays
unlimited
userDefined
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RetentionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RetentionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
userDefined
public static final RetentionType userDefined
-
unlimited
public static final RetentionType unlimited
-
numberOfDays
public static final RetentionType numberOfDays
-
-
Method Detail
-
values
public static RetentionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RetentionType c : RetentionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RetentionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-