jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r295031 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java
Date Wed, 05 Oct 2005 16:35:41 GMT
Author: tripod
Date: Wed Oct  5 09:35:36 2005
New Revision: 295031

URL: http://svn.apache.org/viewcvs?rev=295031&view=rev
Log:
adding equals() and hashCode()

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java?rev=295031&r1=295030&r2=295031&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java
Wed Oct  5 09:35:36 2005
@@ -142,5 +142,25 @@
     public boolean isProtected() {
         return itemDef.isProtected();
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (!(o instanceof ItemDefinitionImpl)) {
+            return false;
+        }
+        return itemDef.equals(((ItemDefinitionImpl) o).itemDef);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public int hashCode() {
+        return itemDef.hashCode();
+    }
 }
 



Mime
View raw message