Codota Logo
EmptyVersion.getInstance
Code IndexAdd Codota to your IDE (free)

How to use
getInstance
method
in
org.jboss.forge.furnace.versions.EmptyVersion

Best Java code snippets using org.jboss.forge.furnace.versions.EmptyVersion.getInstance (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.jboss.forge.furnace/furnace-api

@Override
public Version getMin()
{
 return EmptyVersion.getInstance();
}
origin: org.jboss.forge.furnace/furnace-api

@Override
public Version getMax()
{
 return EmptyVersion.getInstance();
}
origin: windup/windup

public static Version getRuntimeAPIVersion()
{
  String version = Bootstrap.class.getPackage().getImplementationVersion();
  if (version != null)
  {
    return SingleVersion.valueOf(version);
  }
  return EmptyVersion.getInstance();
}
origin: org.jboss.windup/windup-bootstrap

public static Version getRuntimeAPIVersion()
{
  String version = Bootstrap.class.getPackage().getImplementationVersion();
  if (version != null)
  {
    return SingleVersion.valueOf(version);
  }
  return EmptyVersion.getInstance();
}
origin: org.jboss.forge.furnace/furnace-api

/**
* Create an {@link AddonId} from the given name, {@link Version}, and API {@link Version}.
*/
public static AddonId from(String name, Version version, Version apiVersion)
{
 Assert.notNull(name, "Name cannot be null.");
 if (name.trim().isEmpty())
   throw new IllegalArgumentException("Name cannot be empty.");
 Assert.notNull(version, "Version cannot be null.");
 if (version.toString().trim().isEmpty())
   throw new IllegalArgumentException("Version cannot be empty.");
 AddonId id = new AddonId();
 id.name = name;
 id.version = version;
 if (apiVersion == null || apiVersion.toString().trim().isEmpty())
   id.apiVersion = EmptyVersion.getInstance();
 else
   id.apiVersion = apiVersion;
 return id;
}
origin: org.jboss.forge.furnace/furnace-api

/**
* Returns the Implementation version for the given {@link Class}
* 
* @param type the {@link Class} with the corresponding package
* @return {@link Version} representation from the {@link Package#getImplementationVersion()} returned from
*         {@link Class#getPackage()}
*/
public static Version getImplementationVersionFor(Class<?> type)
{
 Assert.notNull(type, "Type must not be null.");
 final Version result;
 Package pkg = type.getPackage();
 if (pkg == null)
 {
   result = EmptyVersion.getInstance();
 }
 else
 {
   String version = pkg.getImplementationVersion();
   if (Strings.isNullOrEmpty(version))
   {
    result = EmptyVersion.getInstance();
   }
   else
   {
    result = SingleVersion.valueOf(version);
   }
 }
 return result;
}
origin: org.jboss.forge.furnace/furnace-api

/**
* Create an {@link AddonId} from the given name, version, and API version.
*/
public static AddonId from(String name, String version, String apiVersion)
{
 Assert.notNull(name, "Name cannot be null.");
 if (name.trim().isEmpty())
   throw new IllegalArgumentException("Name cannot be empty.");
 Assert.notNull(version, "Version cannot be null.");
 if (version.trim().isEmpty())
   throw new IllegalArgumentException("Version cannot be empty.");
 AddonId id = new AddonId();
 id.name = name;
 id.version = SingleVersion.valueOf(version);
 if (apiVersion == null || apiVersion.trim().isEmpty())
   id.apiVersion = EmptyVersion.getInstance();
 else
   id.apiVersion = SingleVersion.valueOf(apiVersion);
 return id;
}
origin: org.jboss.forge.furnace/furnace-api

/**
* Returns the Specification version for the given {@link Class}
* 
* @param type the {@link Class} with the corresponding package
* @return {@link Version} representation from the {@link Package#getSpecificationVersion()} returned from
*         {@link Class#getPackage()}
*/
public static Version getSpecificationVersionFor(Class<?> type)
{
 Assert.notNull(type, "Type must not be null.");
 final Version result;
 Package pkg = type.getPackage();
 if (pkg == null)
 {
   result = EmptyVersion.getInstance();
 }
 else
 {
   String version = pkg.getSpecificationVersion();
   if (Strings.isNullOrEmpty(version))
   {
    result = EmptyVersion.getInstance();
   }
   else
   {
    result = SingleVersion.valueOf(version);
   }
 }
 return result;
}
origin: org.jboss.forge.furnace/furnace-manager-resolver-maven

if (resolveAddonAPIVersions && (addonAPIVersion == null || EmptyVersion.getInstance().equals(addonAPIVersion)))
org.jboss.forge.furnace.versionsEmptyVersiongetInstance

Popular methods of EmptyVersion

    Popular in Java

    • Making http post requests using okhttp
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • getResourceAsStream (ClassLoader)
      Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
    • getExternalFilesDir (Context)
    • Point (java.awt)
      A point representing a location in (x, y) coordinate space, specified in integer precision.
    • FileInputStream (java.io)
      A FileInputStream obtains input bytes from a file in a file system. What files are available depends
    • DecimalFormat (java.text)
      DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    • DateTimeFormat (org.joda.time.format)
      Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
    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