public class TechnologyReference extends Object
VersionRange.| Constructor and Description |
|---|
TechnologyReference()
DO NOT USE -- This is just here to make proxies possible
|
TechnologyReference(String id)
Construct a new
TechnologyReference using the given String ID. |
TechnologyReference(String id,
String versionRange)
|
TechnologyReference(String id,
org.jboss.forge.furnace.versions.VersionRange versionRange)
|
TechnologyReference(TechnologyReferenceModel model) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId()
Get the name/ID of this
TechnologyReference. |
org.jboss.forge.furnace.versions.VersionRange |
getVersionRange()
Get the
VersionRange of this TechnologyReference. |
String |
getVersionRangeAsString()
This provides a parsable version string based upon the current
VersionRange. |
int |
hashCode() |
boolean |
matches(TechnologyReference other)
Returns true if the other
TechnologyReference has the same technology id and the two version ranges overlap. |
static TechnologyReference |
parseFromIDAndVersion(String idAndVersion)
Parses a
TechnologyReference from a string that is formatted as either
"id" or "id:versionRange". |
String |
toString() |
boolean |
versionRangesOverlap(org.jboss.forge.furnace.versions.VersionRange otherRange)
Takes the given
VersionRange objects and returns true if there is any overlap between the two
ranges. |
public TechnologyReference()
public TechnologyReference(TechnologyReferenceModel model)
public TechnologyReference(String id, org.jboss.forge.furnace.versions.VersionRange versionRange)
public TechnologyReference(String id)
TechnologyReference using the given String ID.public static TechnologyReference parseFromIDAndVersion(String idAndVersion)
TechnologyReference from a string that is formatted as either
"id" or "id:versionRange".public String getId()
TechnologyReference.public org.jboss.forge.furnace.versions.VersionRange getVersionRange()
VersionRange of this TechnologyReference.public boolean matches(TechnologyReference other)
TechnologyReference has the same technology id and the two version ranges overlap.public boolean versionRangesOverlap(org.jboss.forge.furnace.versions.VersionRange otherRange)
VersionRange objects and returns true if there is any overlap between the two
ranges.
If either is null, then it is treated as overlapping.public String getVersionRangeAsString()
VersionRange. If the version
range is null, this will return null.Copyright © 2021 JBoss by Red Hat. All rights reserved.