org.apache.mina.transport.vmpipe
Class VmPipeAddress
java.lang.Object
java.net.SocketAddress
org.apache.mina.transport.vmpipe.VmPipeAddress
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<VmPipeAddress>
public class VmPipeAddress
- extends java.net.SocketAddress
- implements java.lang.Comparable<VmPipeAddress>
A SocketAddress
which represents in-VM pipe port number.
- Author:
- Apache MINA Project
- See Also:
- Serialized Form
Constructor Summary |
VmPipeAddress(int port)
Creates a new instance with the specifid port number. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
VmPipeAddress
public VmPipeAddress(int port)
- Creates a new instance with the specifid port number.
getPort
public int getPort()
- Returns the port number.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(VmPipeAddress o)
- Specified by:
compareTo
in interface java.lang.Comparable<VmPipeAddress>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object