summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-09-03 23:23:51 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-09-03 23:23:51 +0000
commitf5b0a7c2749afc853a0b7c5b8945ae44120fc4a1 (patch)
treeff9da44d7324dfb5e0877e028a88cf938f86f262 /src/main/java/com/amazon
parent1e947afa4b660a23a2dcb57463dd810fb73e6030 (diff)
More tests and fixes.
Diffstat (limited to 'src/main/java/com/amazon')
-rw-r--r--src/main/java/com/amazon/carbonado/info/StorableIntrospector.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/info/StorableIntrospector.java b/src/main/java/com/amazon/carbonado/info/StorableIntrospector.java
index 1a015f4..ac3cd24 100644
--- a/src/main/java/com/amazon/carbonado/info/StorableIntrospector.java
+++ b/src/main/java/com/amazon/carbonado/info/StorableIntrospector.java
@@ -1527,6 +1527,26 @@ public class StorableIntrospector {
return mAdapter;
}
+ public int hashCode() {
+ return (getName().hashCode() * 31 + getType().hashCode()) * 31
+ + getEnclosingType().hashCode();
+ }
+
+ public boolean equals(Object obj) {
+ if (this == obj) {
+ return true;
+ }
+
+ if (obj instanceof StorableProperty) {
+ StorableProperty other = (StorableProperty) obj;
+ return getName().equals(other.getName())
+ && getType().equals(other.getType())
+ && getEnclosingType().equals(other.getEnclosingType());
+ }
+
+ return false;
+ }
+
public String toString() {
StringBuilder b = new StringBuilder();
try {