|
||||||||||
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.EnvironmentId
public final class EnvironmentId
Defines an environment an application is deployed to.
Field Summary | |
---|---|
static EnvironmentId |
ANY_ENV Defines the application for any environment. |
Constructor Summary | |
---|---|
EnvironmentId(String name) Convenience constructor without a node. |
|
EnvironmentId(String name, String node) Default constructor. |
Method Summary | |
---|---|
int |
compareTo(EnvironmentId o) |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
String |
getName() Returns the name of the environment. |
String |
getNode() Returns the optional identifier of the node within the given environment. |
int |
hashCode() Returns the hash code of the object. |
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 EnvironmentId ANY_ENV
Constructor Detail |
---|
public EnvironmentId(String name) throws IllegalArgumentException
name
- the name of the environment.
IllegalArgumentException
- if
name
is the empty string or contains only white spaces.
public EnvironmentId(String name, String node) throws IllegalArgumentException
name
- the name of the environment.
node
- the optional identifier of the node within the given environment.
IllegalArgumentException
- if
name
or
node
is the empty string or contains only white spaces.
Method Detail |
---|
public String getName()
public String getNode()
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(EnvironmentId o)
compareTo
in interface
Comparable<EnvironmentId>
Comparable.compareTo(java.lang.Object)
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |