[MOBY-guts] biomoby commit

Martin Senger senger at pub.open-bio.org
Sat Sep 24 17:51:52 UTC 2005


senger
Sat Sep 24 13:51:52 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory pub.open-bio.org:/tmp/cvs-serv30711/src/main/org/biomoby/shared

Modified Files:
	MobyDataType.java 
Log Message:


moby-live/Java/src/main/org/biomoby/shared MobyDataType.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2005/09/22 16:07:09	1.8
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2005/09/24 17:51:52	1.9
@@ -24,7 +24,14 @@
  * @version $Id$
  */
 
-public class MobyDataType {
+public class MobyDataType implements Comparable {
+
+    public int compareTo (Object obj) {
+	return name.compareToIgnoreCase ( ((MobyDataType)obj).getName() );
+    }
+    public boolean equals (Object obj) {
+	return name.equals ( ((MobyDataType)obj).getName() );
+    }
 
     protected String name;
     protected String authority = "";




More information about the MOBY-guts mailing list