[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Apr 15 18:51:17 UTC 2010


gordonp
Thu Apr 15 14:51:17 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv6403/src/main/org/biomoby/shared/data

Modified Files:
	MobyContentInstance.java 
Log Message:
Made contents maintain insertion order by switching to LinkedHashMap for underlying Map storage
moby-live/Java/src/main/org/biomoby/shared/data MobyContentInstance.java,1.14,1.15
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyContentInstance.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyContentInstance.java	2008/01/14 22:54:19	1.14
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyContentInstance.java	2010/04/15 18:51:17	1.15
@@ -31,7 +31,7 @@
     private String serviceAuthURI = null;
     private String serviceNotes = null;
     private int xmlMode = MobyDataInstance.SERVICE_XML_MODE;
-    private HashMap<String, MobyDataJob> members;
+    private LinkedHashMap<String, MobyDataJob> members;
     private int autoID = 1;  // to name members without existing names
     private Vector<ServiceException> exceptions;
 
@@ -40,7 +40,7 @@
      * Useful if you are a client composing a query, or a server composing a response.
      */
     public MobyContentInstance(){
-	members = new HashMap<String, MobyDataJob>();
+	members = new LinkedHashMap<String, MobyDataJob>();
 	exceptions = new Vector<ServiceException>();
     }
 
@@ -106,7 +106,7 @@
 	    }
 	}
 	
-	members = new HashMap<String,MobyDataJob>();
+	members = new LinkedHashMap<String,MobyDataJob>();
 
 	// If we got this far, we're in the clear for the single envelope
 	// What we need to parse now is the one or more sets of data in the envelope




More information about the MOBY-guts mailing list