Package org.forgerock.opendj.ldap
Enum Class Entries.DiffStrategy
- All Implemented Interfaces:
Serializable
,Comparable<Entries.DiffStrategy>
,java.lang.constant.Constable
- Enclosing class:
- Entries
Defines the available strategy to compute changes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAttribute values are compared byte for byte.Attribute values are compared using their equality matching rule.Compute a minimal set of modifications optimized for use with the permissive modify request control. -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
isDifferent
(Attribute fromAttribute, Attribute toAttribute) Returnstrue
if the two attributes are different according to this strategy.static Entries.DiffStrategy
Returns the enum constant of this class with the specified name.static Entries.DiffStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPARE_BYTES
Attribute values are compared byte for byte. -
EQUALITY_MATCHING_RULE
Attribute values are compared using their equality matching rule. -
PERMISSIVE
Compute a minimal set of modifications optimized for use with the permissive modify request control. The generated modify request will include the permissive modify control.
-
-
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
-
isDifferent
Returnstrue
if the two attributes are different according to this strategy.- Parameters:
fromAttribute
- The first attribute.toAttribute
- The second attribute.- Returns:
true
if the two attributes are different according to this strategy.
-