org.jboss.forge.container.versions
Class Versions
java.lang.Object
org.jboss.forge.container.versions.Versions
public class Versions
- extends Object
Utility for interacting with Version
instances.
- Author:
- Lincoln Baxter, III
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 |
Versions
public Versions()
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.xaddonApiVersion
- a version in the format x.x.x
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.