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

com.prezi.pride.ivyversions.VersionMatcher Maven / Gradle / Ivy

There is a newer version: 0.12.3
Show newest version
package com.prezi.pride.ivyversions;

import java.util.Comparator;

/**
 * Compares version selectors against candidate versions, indicating whether they match or not.
 * 

This interface was initially derived from {@code org.apache.ivy.plugins.version.VersionMatcher}. */ public interface VersionMatcher extends Comparator { public boolean canHandle(String selector); /** * Indicates if the given version selector matches the given candidate version. */ public boolean accept(String selector, String candidate); /** * Compares a version selector with a candidate version to indicate which is greater. If there is * not enough information to tell which is greater, the version selector should be considered greater * and this method should return 0. */ public int compare(String selector, String candidate); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy