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

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

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

/**
 * A version is used to compare entries against one another.  Versions do not guarantee contiguity, but do guarantee
 * to be comparable.  However this comparability is not the same as the JDK's {@link Comparable} interface.  It is
 * richer in that {@link Comparable} doesn't differentiate between instances that are the same versus instances that
 * are equal-but-different.
 *
 * @author Manik Surtani
 * @since 5.1
 */
public interface EntryVersion {

   /**
    * Compares the given version against the current instance.
    * @param other the other version to compare against
    * @return a InequalVersionComparisonResult instance
    */
   InequalVersionComparisonResult compareTo(EntryVersion other);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy