[MOBY-guts] biomoby commit

Andreas Groscurth groscurt at dev.open-bio.org
Wed Dec 17 14:07:17 UTC 2008


groscurt
Wed Dec 17 09:07:16 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv5630/src/main/org/biomoby/shared

Modified Files:
	MobyService.java 
Log Message:
added hashCode method, based on the uniquename as used in the equals method
moby-live/Java/src/main/org/biomoby/shared MobyService.java,1.25,1.26
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java	2008/10/21 16:38:44	1.25
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java	2008/12/17 14:07:16	1.26
@@ -102,6 +102,10 @@
 	if (obj == null) return false;
 	return getUniqueName().equals ( ((MobyService)obj).getUniqueName() );
     }
+    
+    public int hashCode() {
+    	return getUniqueName().hashCode();
+    }
 
     /**************************************************************************
      * Default constructor.




More information about the MOBY-guts mailing list