Tabnine Logo
VersionUtil.isVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
isVersion
method
in
org.apache.archiva.common.utils.VersionUtil

Best Java code snippets using org.apache.archiva.common.utils.VersionUtil.isVersion (Showing top 4 results out of 315)

origin: apache/archiva

protected String nextVersion()
{
  boolean done = false;
  StringBuilder ver = new StringBuilder();
  while ( !done )
  {
    int initialOffset = offset;
    String section = next();
    if ( section == null )
    {
      done = true;
    }
    else if ( VersionUtil.isVersion( section ) )
    {
      if ( ver.length() > 0 )
      {
        ver.append( '-' );
      }
      ver.append( section );
    }
    else
    {
      offset = initialOffset;
      done = true;
    }
  }
  return ver.toString();
}
origin: org.apache.archiva/maven2-repository

protected String nextVersion()
{
  boolean done = false;
  StringBuilder ver = new StringBuilder();
  while ( !done )
  {
    int initialOffset = offset;
    String section = next();
    if ( section == null )
    {
      done = true;
    }
    else if ( VersionUtil.isVersion( section ) )
    {
      if ( ver.length() > 0 )
      {
        ver.append( '-' );
      }
      ver.append( section );
    }
    else
    {
      offset = initialOffset;
      done = true;
    }
  }
  return ver.toString();
}
origin: apache/archiva

else if ( !VersionUtil.isVersion( section ) )
origin: org.apache.archiva/maven2-repository

else if ( !VersionUtil.isVersion( section ) )
org.apache.archiva.common.utilsVersionUtilisVersion

Javadoc

Tests if the unknown string contains elements that identify it as a version string (or not).

The algorithm tests each part of the string that is delimited by a '-' (dash) character. If 75% or more of the sections are identified as 'version' strings, the result is determined to be of a high probability to be version identifier string.

Popular methods of VersionUtil

  • isSnapshot
  • getBaseVersion
  • isGenericSnapshot
  • isUniqueSnapshot
  • getReleaseVersion
    Get the release version of the snapshot version. If snapshot version is 1.0-SNAPSHOT, then releas

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm plugins
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