Enum Entries.DiffStrategy

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