Forge - Parent 2.0.0-SNAPSHOT

org.jboss.forge.container.versions
Class Versions

java.lang.Object
  extended by org.jboss.forge.container.versions.Versions

public class Versions
extends Object

Utility for interacting with Version instances.

Author:
Lincoln Baxter, III

Constructor Summary
Versions()
           
 
Method Summary
static boolean isApiCompatible(Version runtimeVersion, Version addonApiVersion)
          This method only returns true if: - The major version of addonApiVersion is equal to the major version of runtimeVersion AND - The minor version of addonApiVersion is less or equal to the minor version of runtimeVersion - The addonApiVersion is null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Versions

public Versions()
Method Detail

isApiCompatible

public static boolean isApiCompatible(Version runtimeVersion,
                                      Version addonApiVersion)
This method only returns true if: - The major version of addonApiVersion is equal to the major version of runtimeVersion AND - The minor version of addonApiVersion is less or equal to the minor version of runtimeVersion - The addonApiVersion is null

Parameters:
runtimeVersion - a version in the format x.x.x
addonApiVersion - a version in the format x.x.x

Forge - Parent 2.0.0-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.