Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof IIOPAddress))
return false ;
IIOPAddress other = (IIOPAddress)obj ;
return getHost().equals(other.getHost()) &&
(getPort() == other.getPort()) ;
|
public int | hashCode()
return getHost().hashCode() ^ getPort() ;
|
protected short | intToShort(int value)
if (value > 32767)
return (short)(value - 65536) ;
return (short)value ;
|
protected int | shortToInt(short value)
if (value < 0)
return value + 65536 ;
return value ;
|
public java.lang.String | toString()
return "IIOPAddress[" + getHost() + "," + getPort() + "]" ;
|
public void | write(org.omg.CORBA_2_3.portable.OutputStream os)
os.write_string( getHost() ) ;
int port = getPort() ;
os.write_short( intToShort( port ) ) ;
|