org.inria.myriads.snoozecommon.communication
Class NetworkAddress

java.lang.Object
  extended by org.inria.myriads.snoozecommon.communication.NetworkAddress
All Implemented Interfaces:
Serializable

public final class NetworkAddress
extends Object
implements Serializable

Network address.

Author:
Eugen Feller
See Also:
Serialized Form

Constructor Summary
NetworkAddress()
          Constructor.
NetworkAddress(NetworkAddress originalAddress)
          Copy constructor.
 
Method Summary
 String getAddress()
          Returns the address.
 int getPort()
          Returns the port.
 void setAddress(String address)
          Sets the address.
 void setPort(int port)
          Sets the port.
 String toString()
          Converts to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkAddress

public NetworkAddress()
Constructor.


NetworkAddress

public NetworkAddress(NetworkAddress originalAddress)
Copy constructor.

Parameters:
originalAddress - The original address
Method Detail

getAddress

public String getAddress()
Returns the address.

Returns:
The address

getPort

public int getPort()
Returns the port.

Returns:
The port

setPort

public void setPort(int port)
Sets the port.

Parameters:
port - The port

setAddress

public void setAddress(String address)
Sets the address.

Parameters:
address - The address

toString

public String toString()
Converts to string.

Overrides:
toString in class Object
Returns:
The string representation


Copyright © 2012. All Rights Reserved.