Enum PersistentSearchChangeType

    • Enum Constant Detail

      • ADD

        public static final PersistentSearchChangeType ADD
        Indicates that an Add operation triggered the entry change notification.
      • DELETE

        public static final PersistentSearchChangeType DELETE
        Indicates that an Delete operation triggered the entry change notification.
      • MODIFY

        public static final PersistentSearchChangeType MODIFY
        Indicates that an Modify operation triggered the entry change notification.
      • MODIFY_DN

        public static final PersistentSearchChangeType MODIFY_DN
        Indicates that an Modify DN operation triggered the entry change notification.
    • Method Detail

      • values

        public static PersistentSearchChangeType[] 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 (PersistentSearchChangeType c : PersistentSearchChangeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PersistentSearchChangeType 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
      • intValue

        public int intValue()
        Returns the integer value for this change type as defined in the internet draft.
        Returns:
        The integer value for this change type.
      • valueOf

        public static PersistentSearchChangeType valueOf​(int value)
        Returns the enum value that would return the provided argument value from its intValue method.
        Parameters:
        value - The value to match.
        Returns:
        The appropriate enum value.
      • toSet

        public static Set<PersistentSearchChangeType> toSet​(int changeTypes)
                                                     throws DecodeException
        Returns the set of enum values corresponding to the encoded persistent change types.
        Parameters:
        changeTypes - The persistent change types encoded as an int.
        Returns:
        set of enum values corresponding to the encoded persistent change types.
        Throws:
        DecodeException - if the change types value is invalid