User: rinkrank
Date: 02/03/17 12:43:27
Modified: src/xjavadoc ProxyClass.java
Log:
implemented equals/hashCode
Revision Changes Path
1.14 +32 -0 xjavadoc/src/xjavadoc/ProxyClass.java
Index: ProxyClass.java
===================================================================
RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/ProxyClass.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -r1.13 -r1.14
--- ProxyClass.java 16 Mar 2002 20:23:31 -0000 1.13
+++ ProxyClass.java 17 Mar 2002 20:43:27 -0000 1.14
@@ -540,6 +540,38 @@
/**
* Describe what the method does
*
+ * @param o 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 o) {
+ if (o instanceof XClass) {
+ XClass other = (XClass)o;
+ return qualifiedName().equals(other.qualifiedName());
+ }
+ else {
+ return false;
+ }
+ }
+
+
+ /**
+ * 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();
+ }
+
+
+ /**
+ * Describe what the method does
+ *
* @todo-javadoc Write javadocs for method
*/
private final void resolve() {
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel