Package org.forgerock.opendj.ldap
Enum Entries.DiffStrategy
- java.lang.Object
-
- java.lang.Enum<Entries.DiffStrategy>
-
- org.forgerock.opendj.ldap.Entries.DiffStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<Entries.DiffStrategy>
- Enclosing class:
- Entries
public static enum Entries.DiffStrategy extends Enum<Entries.DiffStrategy>
Defines the available strategy to compute changes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isDifferent(Attribute fromAttribute, Attribute toAttribute)
Returnstrue
if the two attributes are different according to this strategy.static Entries.DiffStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Entries.DiffStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPARE_BYTES
public static final Entries.DiffStrategy COMPARE_BYTES
Attribute values are compared byte for byte.
-
EQUALITY_MATCHING_RULE
public static final Entries.DiffStrategy EQUALITY_MATCHING_RULE
Attribute values are compared using their equality matching rule.
-
PERMISSIVE
public static final Entries.DiffStrategy 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 Detail
-
values
public static Entries.DiffStrategy[] 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 (Entries.DiffStrategy c : Entries.DiffStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Entries.DiffStrategy 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
-
isDifferent
public abstract boolean isDifferent(Attribute fromAttribute, Attribute toAttribute)
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.
-
-