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

net.ossindex.version.impl.AbstractCommonRange Maven / Gradle / Ivy

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