Package org.forgerock.opendj.ldap
Enum ModificationType.Enum
- java.lang.Object
-
- java.lang.Enum<ModificationType.Enum>
-
- org.forgerock.opendj.ldap.ModificationType.Enum
-
- All Implemented Interfaces:
Serializable
,Comparable<ModificationType.Enum>
- Enclosing class:
- ModificationType
public static enum ModificationType.Enum extends Enum<ModificationType.Enum>
Contains equivalent values for the ModificationType values. This allows easily using ModificationType values with switch statements.ModificationType itself is not an enum because modification types are extensible, hence the
UNKNOWN
enum value.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModificationType.Enum
valueOf(String name)
Returns the enum constant of this type with the specified name.static ModificationType.Enum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final ModificationType.Enum ADD
- See Also:
ModificationType.ADD
-
DELETE
public static final ModificationType.Enum DELETE
- See Also:
ModificationType.DELETE
-
REPLACE
public static final ModificationType.Enum REPLACE
- See Also:
ModificationType.REPLACE
-
INCREMENT
public static final ModificationType.Enum INCREMENT
- See Also:
ModificationType.INCREMENT
-
UNKNOWN
public static final ModificationType.Enum UNKNOWN
Used for unknown modification types.
-
-
Method Detail
-
values
public static ModificationType.Enum[] 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 (ModificationType.Enum c : ModificationType.Enum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModificationType.Enum valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-