1 23 24 31 32 package com.sun.enterprise.iiop; 33 34 public final class AlternateIIOPAddressComponent implements org.omg.CORBA.portable.IDLEntity 35 { 36 public static final int TAG_ALTERNATE_IIOP_ADDRESS_ID = 89374; 37 public String host = null; 38 public short port = (short)0; 39 40 public AlternateIIOPAddressComponent () 41 { 42 } 44 public AlternateIIOPAddressComponent (String _host, short _port) 45 { 46 host = _host; 47 port = _port; 48 } 50 public boolean equals(Object o) 51 { 52 if (o == null) { 53 return false; 54 } 55 if (! (o instanceof AlternateIIOPAddressComponent)) { 56 return false; 57 } 58 AlternateIIOPAddressComponent other = (AlternateIIOPAddressComponent)o; 59 if (other.port != port) { 60 return false; 61 } 62 if (! other.host.equals(host)) { 63 return false; 64 } 65 return true; 66 } 67 68 public String toString() 69 { 70 return "AlternateIIOPAddressComponent[" + host + " " + port + "]"; 71 } 72 73 } | Popular Tags |