All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.configuration.attributes.Updatable Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.configuration.attributes;

/**
 * An interface for defining updatable attributes/attributeset. The default implementation is a no-op.
 *
 * @author Tristan Tarrant
 * @since 13.0
 */

public interface Updatable {

   /**
    * Updates the mutable part of this instance with the values of the other instance
    * @param other
    */
   default void update(String parentName, T other) {
      // Do nothing
   }

   /**
    * Verifies that updating the mutable part of this instance with the values of the other instance is possible
    * @param other
    */
   default void validateUpdate(String parentName, T other) {
      // Do nothing
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy