public final class DeployableUnitID extends Object implements Comparable, Serializable
DeployableUnitID
class encapsulate the identity of deployable
units installed in the SLEE.Constructor and Description |
---|
DeployableUnitID(String url)
Create a new deployable unit identifier.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compare this deployable unit identifier with the specified object for order.
|
boolean |
equals(Object obj)
Compare this deployable unit identifier for equality with another object.
|
String |
getURL()
Get the URL that the deployable unit was installed from.
|
int |
hashCode()
Get a hash code value for this deployable unit identifier.
|
String |
toString()
Get a string representation for this deployable unit identifier.
|
public DeployableUnitID(String url)
url
- the URL where the deployable unit was installed from.NullPointerException
- if url
is null
.public final String getURL()
public final boolean equals(Object obj)
equals
in class Object
obj
- the object to compare this with.true
if obj
is a deployable unit identifier
with the same URL as this, false
otherwise.Object.equals(Object)
public final int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
public int compareTo(Object obj)
Deployable unit ordering is determined by the java.lang.String
ordering of the url attributes of this
and obj
.
compareTo
in interface Comparable
obj
- the object to compare this with.Comparable.compareTo(Object)