jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r393344 - /jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java
Date Wed, 12 Apr 2006 00:38:36 GMT
Author: tcurdt
Date: Tue Apr 11 17:38:34 2006
New Revision: 393344

URL: http://svn.apache.org/viewcvs?rev=393344&view=rev
Log:
port from trunk


Modified:
    jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java

Modified: jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java?rev=393344&r1=393343&r2=393344&view=diff
==============================================================================
--- jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java (original)
+++ jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java Tue Apr 11 17:38:34
2006
@@ -63,6 +63,26 @@
 
 
     /**
+     * @return hashcode of Type
+     */
+    public int hashCode() {
+    	return type ^ signature.hashCode();
+    }
+    
+    
+    /**
+     * @return whether the Types are equal
+     */
+    public boolean equals(Object o) {
+  		if (o instanceof Type) {
+  			Type t = (Type)o;
+  			return (type == t.type) && signature.equals(t.signature);
+  		}
+  		return false;
+    }
+    
+    
+    /**
      * @return signature for given type.
      */
     public String getSignature() {



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message