public class AddonId extends Object implements Comparable<AddonId>
Addon.| Constructor and Description |
|---|
AddonId() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AddonId other) |
boolean |
equals(Object obj) |
static AddonId |
from(String name,
String version)
Create an
AddonId from the given name and version. |
static AddonId |
from(String name,
String version,
String apiVersion)
Create an
AddonId from the given name, version, and API version. |
static AddonId |
from(String name,
Version version)
|
static AddonId |
from(String name,
Version version,
Version apiVersion)
|
static AddonId |
fromCoordinates(String coordinates)
Attempt to parse the given string as
Addon coordinates in the form: "group:name,version" |
Version |
getApiVersion()
|
String |
getName()
Get the name of this
AddonId. |
Version |
getVersion()
|
int |
hashCode() |
String |
toCoordinates()
The name and version, comma separated.
|
String |
toString() |
public Version getApiVersion()
public Version getVersion()
public static AddonId fromCoordinates(String coordinates) throws IllegalArgumentException
Addon coordinates in the form: "group:name,version"IllegalStateException - when coordinates are malformed.IllegalArgumentExceptionpublic static AddonId from(String name, String version)
AddonId from the given name and version.public static AddonId from(String name, String version, String apiVersion)
AddonId from the given name, version, and API version.public String toCoordinates()
public int compareTo(AddonId other)
compareTo in interface Comparable<AddonId>Copyright © 2014 JBoss by Red Hat. All rights reserved.