public final class ServerCursor
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ServerCursor(long id,
ServerAddress address)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ServerAddress |
getAddress()
Gets the server address.
|
long |
getId()
Gets the cursor id that the server uses to uniquely identify the cursor.
|
int |
hashCode() |
java.lang.String |
toString() |
public ServerCursor(long id, ServerAddress address)
id
- the non-null cursor idaddress
- the non-null server address that has the cursorpublic long getId()
public ServerAddress getAddress()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object