|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.equinox.p2.metadata.VersionedId
public class VersionedId
An object representing a (id,version) pair. An instance of this class can be constructed
by invoking the constructor or calling parse(String) with a string
representation of this VersionedID.
| Constructor Summary | |
|---|---|
VersionedId(String id,
String version)
Creates a new versioned id with the given id and version. |
|
VersionedId(String id,
Version version)
Creates a new versioned id with the given id and version. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getId()
Returns the id portion of this versioned id. |
Version |
getVersion()
Returns the version portion of this versioned id. |
int |
hashCode()
|
static IVersionedId |
parse(String spec)
Creates and returns a new VersionedId from the given string specification. |
String |
toString()
Returns a string representation of this versioned id. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VersionedId(String id,
String version)
id - The identifierversion - The version
IllegalArgumentException - If version is improperly
formatted.
public VersionedId(String id,
Version version)
id - The identifierversion - The version| Method Detail |
|---|
public static IVersionedId parse(String spec)
VersionedId from the given string specification.
The specification must be of the form "id/version", or just "id" if the version is absent
This factory method can be used to reconstruct a VersionedId
instance from the string representation produced by a previous invocation of
toString().
spec - the specification for the versioned id to create
IllegalArgumentException - If spec is improperly
formatted.public String getId()
IVersionedId
getId in interface IVersionedIdpublic Version getVersion()
IVersionedId
getVersion in interface IVersionedIdpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
VersionedId
instance using {parse(String).
toString in class Object
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.