
net.ossindex.version.impl.AbstractCommonRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heuristic-version Show documentation
Show all versions of heuristic-version Show documentation
Utility classes that help parse and compare version strings
The newest version!
package net.ossindex.version.impl;
import net.ossindex.version.IVersion;
import net.ossindex.version.IVersionRange;
public abstract class AbstractCommonRange
implements IVersionRange
{
@Override
public int compareTo(IVersionRange yourRange) {
IVersion myMin = getMinimum();
IVersion yourMin = yourRange.getMinimum();
return myMin.compareTo(yourMin);
}
@Override
public boolean contains(IVersionRange trange) {
return false;
}
@Override
public IVersionRange invert() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy