|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.config.domain.key.ApplicationId
public final class ApplicationId
The coordinates to identify an application.
Field Summary | |
---|---|
static ApplicationId |
ANY_APP Defines the application for any group, name and version. |
Constructor Summary | |
---|---|
ApplicationId(String groupId, String artifactId, String version) Default constructor. |
Method Summary | |
---|---|
int |
compareTo(ApplicationId o) |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
String |
getArtifactId() Returns the name of the application. |
String |
getGroupId() Returns the group the application belongs to. |
String |
getVersion() Returns the version of the application. |
int |
hashCode() Returns the hash code of the object. |
String |
toPath() Returns the string representation of the object as a path. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ApplicationId ANY_APP
Constructor Detail |
---|
public ApplicationId(String groupId, String artifactId, String version) throws IllegalArgumentException
groupId
- the group the application belongs to. May be
null
artifactId
- the name of the application. May be
null
.
version
- the version of the application. May be
null
.
IllegalArgumentException
- if either parameter is the empty string or contains only white spaces.
Method Detail |
---|
public String getGroupId()
null
.
public String getArtifactId()
null
.
public String getVersion()
null
.
public int hashCode()
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public int compareTo(ApplicationId o)
compareTo
in interface
Comparable<ApplicationId>
Comparable.compareTo(java.lang.Object)
public String toPath()
public String toString()
null
, the empty string is appended. If no element is specified, the returned string is
::
.
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |