edu.emory.mathcs.util.net.inproc
Class InProcSocketAddress
java.lang.Object
java.net.SocketAddress
edu.emory.mathcs.util.net.inproc.InProcSocketAddress
- All Implemented Interfaces:
- java.io.Serializable
- public class InProcSocketAddress
- extends java.net.SocketAddress
Represents an address of in-proc socket. Consists of a logical port
number.
- Version:
- 1.0
- Author:
- Dawid Kurzyniec
- See Also:
- Serialized Form
Constructor Summary |
InProcSocketAddress(int port)
Creates new inproc socket address representing specified logical port. |
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
getPort()
Returns the logical port number represented by this inproc socket
address. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
InProcSocketAddress
public InProcSocketAddress(int port)
- Creates new inproc socket address representing specified logical port.
- Parameters:
port
- the logical port
getPort
public int getPort()
- Returns the logical port number represented by this inproc socket
address.
- Returns:
- logical port number
hashCode
public int hashCode()
equals
public boolean equals(java.lang.Object obj)
toString
public java.lang.String toString()