FileDocCategorySizeDatePackage
IIOPAddressBase.javaAPI DocJava SE 5 API1662Fri Aug 26 14:54:24 BST 2005com.sun.corba.se.impl.ior.iiop

IIOPAddressBase

public abstract class IIOPAddressBase extends Object implements com.sun.corba.se.spi.ior.iiop.IIOPAddress
author

Fields Summary
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)

	if (!(obj instanceof IIOPAddress))
	    return false ;

	IIOPAddress other = (IIOPAddress)obj ;

	return getHost().equals(other.getHost()) && 
	    (getPort() == other.getPort()) ;
    
public inthashCode()

	return getHost().hashCode() ^ getPort() ;
    
protected shortintToShort(int value)

	if (value > 32767)
	    return (short)(value - 65536) ;
	return (short)value ;
    
protected intshortToInt(short value)

	if (value < 0)
	    return value + 65536 ;
	return value ;
    
public java.lang.StringtoString()

	return "IIOPAddress[" + getHost() + "," + getPort() + "]" ;
    
public voidwrite(org.omg.CORBA_2_3.portable.OutputStream os)

	os.write_string( getHost() ) ;
	int port = getPort() ;
	os.write_short( intToShort( port ) ) ;