org.apache.mina.transport.vmpipe
Class VmPipeAddress

java.lang.Object
  extended by java.net.SocketAddress
      extended by 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.
 
Method Summary
 int compareTo(VmPipeAddress o)
           
 boolean equals(java.lang.Object o)
           
 int getPort()
          Returns the port number.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VmPipeAddress

public VmPipeAddress(int port)
Creates a new instance with the specifid port number.

Method Detail

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