|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.replication.configuration.ReplicaId
public class ReplicaId
Store a replica ID after having normalized it. The normalization proces checks that the submitted id is valid, ie contains only this char set : { '-', '_', 'a..z', 'A..Z', '0..9' } and its length is between 1 and 16.
Constructor Summary | |
---|---|
ReplicaId(java.lang.String id)
Creates a new instance of ReplicaId. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one |
java.lang.String |
getId()
|
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReplicaId(java.lang.String id)
id
- The replica patternMethod Detail |
---|
public java.lang.String getId()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the reference object with which to compare.
true
if this object is the same as the obj argument;
false
otherwise.public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the Object to be compared.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |