Override hashCode().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 12 Oct 2010 13:40:37 +0000 (15:40 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 12 Oct 2010 13:40:37 +0000 (15:40 +0200)
src/main/java/net/pterodactylus/sone/data/Sone.java

index 8416a05..7c96443 100644 (file)
@@ -131,4 +131,17 @@ public class Sone {
                return this;
        }
 
+       //
+       // OBJECT METHODS
+       //
+
+       /**
+        * {@inheritDoc}
+        */
+       @Override
+       public int hashCode() {
+               /* TODO improve */
+               return requestUri.hashCode();
+       }
+
 }