| Package | Description |
|---|---|
| org.jboss.forge.furnace | |
| org.jboss.forge.furnace.addons | |
| org.jboss.forge.furnace.repositories | |
| org.jboss.forge.furnace.versions |
| Modifier and Type | Method and Description |
|---|---|
Version |
Furnace.getVersion()
Get the current runtime API version of
Furnace. |
| Modifier and Type | Method and Description |
|---|---|
Version |
AddonId.getApiVersion() |
Version |
AddonId.getVersion() |
| Modifier and Type | Method and Description |
|---|---|
static AddonId |
AddonId.from(String name,
Version version) |
static AddonId |
AddonId.from(String name,
Version version,
Version apiVersion) |
| Modifier and Type | Method and Description |
|---|---|
List<AddonId> |
AddonRepository.listEnabledCompatibleWithVersion(Version version)
|
| Modifier and Type | Class and Description |
|---|---|
class |
EmptyVersion |
class |
SingleVersion
Default implementation of artifact versioning.
|
| Modifier and Type | Method and Description |
|---|---|
Version |
MultipleVersionRange.getHighestMatch(List<Version> versions)
Return the highest
Version of the given List of versions that satisfies all VersionRange
instances in this MultipleVersionRange; otherwise, return null if no match was found. |
static Version |
EmptyVersion.getInstance() |
Version |
VersionRange.getMax()
Get the maximum
Version (never null.) |
Version |
SingleVersionRange.getMax() |
Version |
MultipleVersionRange.getMax() |
Version |
EmptyVersionRange.getMax() |
Version |
DefaultVersionRange.getMax() |
Version |
VersionRange.getMin()
Get the minimum
Version (never null.) |
Version |
SingleVersionRange.getMin() |
Version |
MultipleVersionRange.getMin() |
Version |
EmptyVersionRange.getMin() |
Version |
DefaultVersionRange.getMin() |
Version |
MultipleVersionRange.matchLowestMatch(List<Version> versions) |
| Modifier and Type | Method and Description |
|---|---|
int |
SingleVersion.compareTo(Version otherVersion) |
boolean |
VersionRange.includes(Version version)
Return true if this
VersionRange includes the given Version. |
boolean |
SingleVersionRange.includes(Version version) |
boolean |
MultipleVersionRange.includes(Version version) |
boolean |
EmptyVersionRange.includes(Version version) |
boolean |
DefaultVersionRange.includes(Version version) |
static boolean |
Versions.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
|
static boolean |
Versions.isSnapshot(Version version)
Returns if the version specified is a SNAPSHOT
|
| Modifier and Type | Method and Description |
|---|---|
Version |
MultipleVersionRange.getHighestMatch(List<Version> versions)
Return the highest
Version of the given List of versions that satisfies all VersionRange
instances in this MultipleVersionRange; otherwise, return null if no match was found. |
Version |
MultipleVersionRange.matchLowestMatch(List<Version> versions) |
| Constructor and Description |
|---|
DefaultVersionRange(Version min,
boolean minInclusive,
Version max,
boolean maxInclusive) |
SingleVersionRange(Version version) |
Copyright © 2014 JBoss by Red Hat. All rights reserved.