Codota Logo
CmsModuleVersion.compareTo
Code IndexAdd Codota to your IDE (free)

How to use
compareTo
method
in
org.opencms.module.CmsModuleVersion

Best Java code snippets using org.opencms.module.CmsModuleVersion.compareTo (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-core

/**
 * Checks if this module depedency depends on another given module dependency.<p>
 *
 * @param other the other dependency to check against
 * @return true if this module depedency depends on the given module dependency
 */
public boolean dependesOn(CmsModuleDependency other) {
  if (!m_name.equals(other.m_name)) {
    // not same name means no dependency
    return false;
  }
  // same name: result depends on version numbers
  return (m_version.compareTo(other.m_version) <= 0);
}
origin: org.opencms/opencms-solr

/**
 * Checks if this module depedency depends on another given module dependency.<p>
 * 
 * @param other the other dependency to check against
 * @return true if this module depedency depends on the given module dependency
 */
public boolean dependesOn(CmsModuleDependency other) {
  if (!m_name.equals(other.m_name)) {
    // not same name means no dependency
    return false;
  }
  // same name: result depends on version numbers
  return (m_version.compareTo(other.m_version) <= 0);
}
origin: org.opencms/opencms-core

/**
 * @see java.lang.Comparable#compareTo(java.lang.Object)
 */
public int compareTo(Object obj) {
  if (obj == this) {
    return 0;
  }
  if (obj instanceof CmsModuleDependency) {
    CmsModuleDependency other = (CmsModuleDependency)obj;
    if (!m_name.equals(other.m_name)) {
      // not same name means no dependency
      return 0;
    }
    // same name: result depends on version numbers
    return m_version.compareTo(other.m_version);
  }
  return 0;
}
origin: org.opencms/opencms-solr

/**
 * @see java.lang.Comparable#compareTo(java.lang.Object)
 */
public int compareTo(Object obj) {
  if (obj == this) {
    return 0;
  }
  if (obj instanceof CmsModuleDependency) {
    CmsModuleDependency other = (CmsModuleDependency)obj;
    if (!m_name.equals(other.m_name)) {
      // not same name means no dependency
      return 0;
    }
    // same name: result depends on version numbers
    return m_version.compareTo(other.m_version);
  }
  return 0;
}
origin: org.opencms/opencms-setup

/**
 * Checks if the categoryfolder setting needs to be updated.
 *
 * @return true if the categoryfolder setting needs to be updated
 */
public boolean needToSetCategoryFolder() {
  if (m_adeModuleVersion == null) {
    return true;
  }
  CmsModuleVersion categoryFolderUpdateVersion = new CmsModuleVersion("9.0.0");
  return (m_adeModuleVersion.compareTo(categoryFolderUpdateVersion) == -1);
}
origin: org.opencms/opencms-setup

CmsModuleVersion instVer = installedModules.get(name);
CmsModuleVersion availVer = entry.getValue().getVersion();
boolean uptodate = (!UPDATE_ALL_MODULES) && ((instVer != null) && (instVer.compareTo(availVer) >= 0));
if (uptodate) {
  m_uptodateModules.add(name);
origin: org.opencms/opencms-solr

if (oldModule.getVersion().compareTo(module.getVersion()) == 0) {
org.opencms.moduleCmsModuleVersioncompareTo

Popular methods of CmsModuleVersion

  • <init>
    Creates a new module version based on a String.
  • getVersion
    Returns the current version String.
  • equals
  • setUpdated
    Sets the updated status.
  • setVersion
    Sets the version as a String.
  • toString
  • increment
    Increments this version number by 1 in the last digit.
  • isUpdated
    Returns the updated status.

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now