Class Modification


  • public final class Modification
    extends Object
    A modification to be performed on an entry during a Modify operation.
    • Constructor Detail

      • Modification

        public Modification​(ModificationType modificationType,
                            Attribute attribute)
        Creates a new modification having the provided modification type and attribute values to be updated. Note that while the returned Modification is immutable, the underlying attribute may not be. The following code ensures that the returned Modification is fully immutable:
         Modification change = new Modification(modificationType, Attributes
                 .unmodifiableAttribute(attribute));
         
        Parameters:
        modificationType - The type of modification to be performed.
        attribute - The the attribute containing the values to be modified.
    • Method Detail

      • getAttribute

        public Attribute getAttribute()
        Returns the attribute containing the values to be modified.
        Returns:
        The the attribute containing the values to be modified.
      • getModificationType

        public ModificationType getModificationType()
        Returns the type of modification to be performed.
        Returns:
        The type of modification to be performed.