harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r822484 - /harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java
Date Tue, 06 Oct 2009 20:32:30 GMT
Author: tellison
Date: Tue Oct  6 20:32:30 2009
New Revision: 822484

URL: http://svn.apache.org/viewvc?rev=822484&view=rev
Log:
Implement hashCode to compliment the equals method.

Modified:
    harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java

Modified: harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java?rev=822484&r1=822483&r2=822484&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java
Tue Oct  6 20:32:30 2009
@@ -174,4 +174,9 @@
         }
         return rt;
     }
+
+    @Override
+    public int hashCode() {
+        return colorModel.hashCode() + sampleModel.hashCode();
+    }
 }
\ No newline at end of file



Mime
View raw message