AlternateIIOPAddressComponentpublic final class AlternateIIOPAddressComponent extends Object implements org.omg.CORBA.portable.IDLEntityAlternateIIOPAddressComponent.java .
Generated by the IDL-to-Java compiler (portable), version "3.1"
from iorintsockfact.idl and then modified by hand for package
name, equals and toString.
Tuesday, July 23, 2002 11:08:46 AM PDT |
Fields Summary |
---|
public static final int | TAG_ALTERNATE_IIOP_ADDRESS_ID | public final String | host | public final short | port |
Constructors Summary |
---|
public AlternateIIOPAddressComponent()
host = null;
port = 0;
| public AlternateIIOPAddressComponent(String _host, short _port)
host = _host;
port = _port;
|
Methods Summary |
---|
public boolean | equals(java.lang.Object o)
if (o == null) {
return false;
}
if (! (o instanceof AlternateIIOPAddressComponent)) {
return false;
}
AlternateIIOPAddressComponent other = (AlternateIIOPAddressComponent)o;
if (other.port != port) {
return false;
}
if (! other.host.equals(host)) {
return false;
}
return true;
| public int | hashCode()
return super.hashCode() ^ (host == null ? 0 : host.hashCode()) ^ port;
| public java.lang.String | toString()
return "AlternateIIOPAddressComponent[" + host + " " + port + "]";
|
|