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

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

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

/**
 * Versions can be compared to each other to result in one version being before, after or at the same time as another
 * version.  This is different from the JDK's {@link Comparable} interface, which is much more simplistic in that it
 * doesn't differentiate between something that is the same versus equal-but-different.
 *
 * @author Manik Surtani
 * @since 5.1
 */
public enum InequalVersionComparisonResult {
   /**
    * Denotes a version that was created temporally before another version.
    */
   BEFORE,
   /**
    * Denotes a version that was created temporally after another version.
    */
   AFTER,
   /**
    * Denotes that the two versions being compared are equal.
    */
   EQUAL,
   /**
    * Denotes a version that was created at the same time as another version, but is not equal.  This is only really
    * useful when using a partition-aware versioning scheme, such as vector or Lamport clocks.
    */
   CONFLICTING
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy