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

org.infinispan.atomic.NullDelta Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.atomic;

import org.infinispan.atomic.impl.AtomicHashMap;

/**
 * Represents no changes.
 *
 * @author Manik Surtani (manik AT jboss DOT org)
 * @author Galder Zamarreño
 * @since 4.0
 */
public enum NullDelta implements Delta {
   INSTANCE;

   @Override
   public DeltaAware merge(DeltaAware other) {
      return (other != null && other instanceof AtomicHashMap) ? other : new AtomicHashMap();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy