Enum Class Entries.DiffStrategy

java.lang.Object
java.lang.Enum<Entries.DiffStrategy>
org.forgerock.opendj.ldap.Entries.DiffStrategy
All Implemented Interfaces:
Serializable, Comparable<Entries.DiffStrategy>, java.lang.constant.Constable
Enclosing class:
Entries

public static enum Entries.DiffStrategy extends Enum<Entries.DiffStrategy>
Defines the available strategy to compute changes.
  • Enum Constant Details

    • 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 Details

    • values

      public static Entries.DiffStrategy[] 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

      public static Entries.DiffStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isDifferent

      public abstract boolean isDifferent(Attribute fromAttribute, Attribute toAttribute)
      Returns true 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.