/[classpath]/classpath/org/omg/CosNaming/NameComponent.java
ViewVC logotype

Diff of /classpath/org/omg/CosNaming/NameComponent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mark, Sat Jul 2 20:32:59 2005 UTC revision 1.4 by audriusa, Wed Sep 14 19:48:03 2005 UTC
# Line 40  package org.omg.CosNaming; Line 40  package org.omg.CosNaming;
40    
41  import org.omg.CORBA.portable.IDLEntity;  import org.omg.CORBA.portable.IDLEntity;
42    
43    import java.util.zip.Adler32;
44    
45  /**  /**
46   * The name component, a node in the multi-comonent name.   * The name component, a node in the multi-comonent name.
47   *   *
# Line 115  public final class NameComponent Line 117  public final class NameComponent
117    {    {
118      return id + "." + kind;      return id + "." + kind;
119    }    }
 }  
120    
121      /**
122       * Return the hashCode of this NameComponent.
123       */
124      public int hashCode()
125      {
126        Adler32 adler = new Adler32();
127        adler.update(toString().getBytes());
128        return (int) adler.getValue() & Integer.MAX_VALUE;
129      }
130    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26