public class ReplicaId extends Object implements Comparable, Serializable
Constructor and Description |
---|
ReplicaId(String id)
Creates a new instance of ReplicaId.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compares this object with the specified object for order.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one
|
String |
getId() |
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString() |
public ReplicaId(String id)
id
- The replica patternpublic String getId()
public int hashCode()
public boolean equals(Object o)
public int compareTo(Object o)
compareTo
in interface Comparable
o
- the Object to be compared.Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.