Project JXTA

net.jxta.ext.config
Class Address

java.lang.Object
  extended by net.jxta.ext.config.Address
Direct Known Subclasses:
MulticastAddress, ProxyAddress, PublicAddress, TcpTransportAddress

public class Address
extends Object

Address container.

Version:
Author:
james todd [gonzo at jxta dot org]

Constructor Summary
Address()
          Constructor for the Address object
Address(Address a)
          Constructor for the Address object
 
Method Summary
 boolean equals(Object o)
          Description of the Method
 URI getAddress()
          Gets the address attribute of the Address object
 int getPortRange()
          Gets the portRange attribute of the Address object
 int hashCode()
           
 void setAddress(URI address)
          Sets the address attribute of the Address object
 void setPortRange(int range)
          Sets the portRange attribute of the Address object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Address

public Address()
Constructor for the Address object


Address

public Address(Address a)
Constructor for the Address object

Parameters:
a - Description of the Parameter
Method Detail

getAddress

public URI getAddress()
Gets the address attribute of the Address object

Returns:
The address value

setAddress

public void setAddress(URI address)
Sets the address attribute of the Address object

Parameters:
address - The new address value
Throws:
IllegalArgumentException - Description of the Exception

getPortRange

public int getPortRange()
Gets the portRange attribute of the Address object

Returns:
The portRange value

setPortRange

public void setPortRange(int range)
Sets the portRange attribute of the Address object

Parameters:
range - The new portRange value

equals

public boolean equals(Object o)
Description of the Method

Overrides:
equals in class Object
Parameters:
o - Description of the Parameter
Returns:
Description of the Return Value

hashCode

public int hashCode()
Overrides:
hashCode in class Object

JXTA J2SE