org.infinispan.atomic.NullDelta Maven / Gradle / Ivy
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