User: ara_e_w 
  Date: 02/03/17 12:44:34

  Modified:    src/xjavadoc AbstractClass.java
  Log:
  equals()/hashcode
  
  Revision  Changes    Path
  1.14      +33 -1     xjavadoc/src/xjavadoc/AbstractClass.java
  
  Index: AbstractClass.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/AbstractClass.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -w -r1.13 -r1.14
  --- AbstractClass.java        16 Mar 2002 20:18:11 -0000      1.13
  +++ AbstractClass.java        17 Mar 2002 20:44:34 -0000      1.14
  @@ -35,7 +35,6 @@
    */
   package xjavadoc;
   
  -import java.lang.reflect.Modifier;
   import java.util.*;
   import java.io.IOException;
   import java.io.File;
  @@ -642,6 +641,39 @@
         */
        public final String toString() {
                return qualifiedName();
  +     }
  +
  +
  +     /**
  +      * Describe what the method does
  +      *
  +      * @param obj Describe what the parameter does
  +      * @return Describe the return value
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
  +      */
  +     public boolean equals(Object obj) {
  +
  +             if (!(obj instanceof XClass)) {
  +                     return false;
  +             }
  +
  +             XClass other_clazz = (XClass)obj;
  +
  +             return qualifiedName().equals(other_clazz.qualifiedName());
  +     }
  +
  +
  +     /**
  +      * Describe what the method does
  +      *
  +      * @return Describe the return value
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for return value
  +      */
  +     public int hashCode() {
  +             return qualifiedName().hashCode();
        }
   
   
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to