public class SocketRemoteIdentifier extends Object implements RemoteIdentifier
Constructor and Description |
---|
SocketRemoteIdentifier(InetSocketAddress addr)
Constructs a remote identifier.
|
SocketRemoteIdentifier(String str)
Constructs a remote identifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks that another object is equal to this object.
|
InetSocketAddress |
getSocketAddress()
Gets the socket address.
|
int |
hashCode()
Returns a hash code for the object.
|
String |
toString()
Returns a string representation of the object.
|
public SocketRemoteIdentifier(InetSocketAddress addr)
addr
- the socket addresspublic SocketRemoteIdentifier(String str)
str
- the string representationRemoteRuntimeException
public InetSocketAddress getSocketAddress()
public int hashCode()
hashCode
in interface Identifier
hashCode
in class Object
public boolean equals(Object o)
equals
in interface Identifier
equals
in class Object
o
- another objectCopyright © 2015 The Apache Software Foundation. All rights reserved.