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

org.infinispan.container.versioning.EntryVersionsMap Maven / Gradle / Ivy

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

import java.util.HashMap;

public class EntryVersionsMap extends HashMap {

   public EntryVersionsMap(int size) {
      super(size);
   }

   public EntryVersionsMap() {
      super();
   }

   public EntryVersionsMap merge(EntryVersionsMap updatedVersions) {
      if (updatedVersions != null && !updatedVersions.isEmpty()) {
         updatedVersions.putAll(this);
         return updatedVersions;
      } else {
         return this;
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy