< prev index next >

src/java.corba/share/classes/com/sun/corba/se/impl/ior/ObjectKeyImpl.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.corba.se.impl.ior;
  27 
  28 import org.omg.CORBA_2_3.portable.OutputStream ;
  29 
  30 import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher ;
  31 
  32 import com.sun.corba.se.spi.orb.ORB ;
  33 
  34 import com.sun.corba.se.spi.ior.ObjectId ;
  35 import com.sun.corba.se.spi.ior.ObjectKey ;
  36 import com.sun.corba.se.spi.ior.ObjectKeyTemplate ;
  37 
  38 import com.sun.corba.se.impl.encoding.EncapsOutputStream ;
  39 
  40 /**
  41  * @author
  42  */
  43 public class ObjectKeyImpl implements ObjectKey
  44 {
  45     private ObjectKeyTemplate oktemp;
  46     private ObjectId id;
  47 
  48     public boolean equals( Object obj )
  49     {
  50         if (obj == null)
  51             return false ;
  52 
  53         if (!(obj instanceof ObjectKeyImpl))
  54             return false ;
  55 
  56         ObjectKeyImpl other = (ObjectKeyImpl)obj ;
  57 
  58         return oktemp.equals( other.oktemp ) &&
  59             id.equals( other.id ) ;
  60     }
  61 
  62     public int hashCode()




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.corba.se.impl.ior;
  27 
  28 import org.omg.CORBA_2_3.portable.OutputStream ;
  29 
  30 import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher ;
  31 
  32 import com.sun.corba.se.spi.orb.ORB ;
  33 
  34 import com.sun.corba.se.spi.ior.ObjectId ;
  35 import com.sun.corba.se.spi.ior.ObjectKey ;
  36 import com.sun.corba.se.spi.ior.ObjectKeyTemplate ;
  37 
  38 import com.sun.corba.se.impl.encoding.EncapsOutputStream ;
  39 



  40 public class ObjectKeyImpl implements ObjectKey
  41 {
  42     private ObjectKeyTemplate oktemp;
  43     private ObjectId id;
  44 
  45     public boolean equals( Object obj )
  46     {
  47         if (obj == null)
  48             return false ;
  49 
  50         if (!(obj instanceof ObjectKeyImpl))
  51             return false ;
  52 
  53         ObjectKeyImpl other = (ObjectKeyImpl)obj ;
  54 
  55         return oktemp.equals( other.oktemp ) &&
  56             id.equals( other.id ) ;
  57     }
  58 
  59     public int hashCode()


< prev index next >