Parent Directory | Revision Log | Patch
--- jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java 2006/04/12 00:26:02 393343 +++ jakarta/bcel/branches/BCEL_5_2/src/java/org/apache/bcel/generic/Type.java 2006/04/12 00:38:34 393344 @@ -63,6 +63,26 @@ public abstract class Type implements ja /** + * @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() {
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |