Tabnine Logo
VersionRange.getMaximumVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaximumVersion
method
in
org.apache.aries.util.VersionRange

Best Java code snippets using org.apache.aries.util.VersionRange.getMaximumVersion (Showing top 8 results out of 315)

origin: org.apache.karaf.region/org.apache.karaf.region.command

if (vr.getMaximumVersion() != null) {
  filter.append(")(" + attribName + "<=");
  filter.append(vr.getMaximumVersion());
if (vr.getMaximumVersion() != null && vr.isMinimumExclusive()) {
  filter.append(")(!(" + attribName + "=");
  filter.append(vr.getMinimumVersion());
if (vr.getMaximumVersion() != null && vr.isMaximumExclusive()) {
  filter.append(")(!(" + attribName + "=");
  filter.append(vr.getMaximumVersion());
  filter.append(")");
origin: org.apache.aries/org.apache.aries.util-r42

if (vr.getMaximumVersion() != null) {
  filter.append(")(" + attribName + "<=");
  filter.append(vr.getMaximumVersion());
if (vr.getMaximumVersion() != null && vr.isMinimumExclusive()) {
  filter.append(")(!(" + attribName + "=");
  filter.append(vr.getMinimumVersion());
if (vr.getMaximumVersion() != null && vr.isMaximumExclusive()) {
  filter.append(")(!(" + attribName + "=");
  filter.append(vr.getMaximumVersion());
  filter.append(")");
origin: org.apache.aries.application/org.apache.aries.application.resolver.obr

if (vr.getMaximumVersion() != null) {
 msgKey.append(vr.isMaximumExclusive() ? "_UPEX" : "_UP");
 inserts.add(vr.getMaximumVersion());
origin: apache/aries

if (vr.getMaximumVersion() != null) {
 msgKey.append(vr.isMaximumExclusive() ? "_UPEX" : "_UP");
 inserts.add(vr.getMaximumVersion());
origin: org.apache.aries/org.apache.aries.util-r42

/**
 * This method checks that the provided version matches the desired version.
 * 
 * @param version
 *            the version.
 * @return true if the version matches, false otherwise.
 */
public boolean matches(Version version) {
  boolean result;
  if (this.getMaximumVersion() == null) {
    result = this.getMinimumVersion().compareTo(version) <= 0;
  } else {
    int minN = this.isMinimumExclusive() ? 0 : 1;
    int maxN = this.isMaximumExclusive() ? 0 : 1;
    result = (this.getMinimumVersion().compareTo(version) < minN)
         && (version.compareTo(this.getMaximumVersion()) < maxN);
  }
  return result;
}
origin: org.apache.aries/org.apache.aries.util-r42

  newMaximumVersion = r.getMaximumVersion();
  newMaximumExclusive = r.isMaximumExclusive();
} else if (r.getMaximumVersion() == null) {
  newMaximumVersion = maximumVersion;
  newMaximumExclusive = maximumExclusive;
} else {
  int maxCompare = maximumVersion.compareTo(r.getMaximumVersion());
  if (maxCompare < 0) {
    newMaximumVersion = maximumVersion;
    newMaximumExclusive = maximumExclusive;
  } else if (maxCompare > 0) {
    newMaximumVersion = r.getMaximumVersion();
    newMaximumExclusive = r.isMaximumExclusive();
  } else {
origin: org.apache.aries.application/org.apache.aries.application.runtime.framework

Version maxV = vri.getMaximumVersion();
if (minV.compareTo(new Version(ve)) < 0 && maxV.compareTo(new Version(ve)) > 0) {
 value = true;
origin: apache/aries

Version maxV = vri.getMaximumVersion();
if (minV.compareTo(new Version(ve)) < 0 && maxV.compareTo(new Version(ve)) > 0) {
 value = true;
org.apache.aries.utilVersionRangegetMaximumVersion

Javadoc

get the maximum version

Popular methods of VersionRange

  • getMinimumVersion
    get the minimum version
  • isMaximumExclusive
    is the maximum version exclusive
  • isMinimumExclusive
    is the minimum version exclusive
  • toString
  • matches
    This method checks that the provided version matches the desired version.
  • equals
  • getExactVersion
    this method returns the exact version from the versionInfo obj. this is used for DeploymentContent o
  • isExactVersion
    check if the versioninfo is the exact version
  • parseVersionRange
    Parse a version range and indicate if the version is an exact version
  • <init>
    Constructor designed for internal use only.
  • assertInvariants
    Assert object invariants. Called by constructors to verify that arguments were valid.
  • intersect
    Create a new version range that is the intersection of this and the argument. In other words, the la
  • assertInvariants,
  • intersect,
  • isRangeValid,
  • processExactVersionAttribute,
  • processVersionAttribute

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now