|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.impl.config.domain.key.rtaware.TenantId
public final class TenantId
Identifies a tenant.
Field Summary | |
---|---|
static TenantId |
ANY_TENANT Defines the ID for any tenant. |
Constructor Summary | |
---|---|
TenantId(String name) Default constructor. |
Method Summary | |
---|---|
int |
compareTo(TenantId 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 tenant. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Returns the string representation of the object. |
static TenantId |
valueOf(String tenantString) Returns an TenantId for the given tenantString. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TenantId ANY_TENANT
Constructor Detail |
---|
public TenantId(String name) throws IllegalArgumentException
name
- the name of the tenant. Must not be blank, but may be
null
.
IllegalArgumentException
- if
name
is blank.
Method Detail |
---|
@CheckForNull public String getName()
public int compareTo(TenantId o)
compareTo
in interface
Comparable<TenantId>
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 String toString()
toString
in class
Object
public static TenantId valueOf(String tenantString)
TenantId
for the given tenantString.
tenantString
- a string describing an tenant.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |