From 869913baf5d81e99c37727bae7ca8652e6abfb8b Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 14 Mar 2006 11:22:04 +0000 Subject: [PATCH] methods for searching DBRef lists --- src/jalview/util/DBRefUtils.java | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 src/jalview/util/DBRefUtils.java diff --git a/src/jalview/util/DBRefUtils.java b/src/jalview/util/DBRefUtils.java new file mode 100755 index 0000000..86ab201 --- /dev/null +++ b/src/jalview/util/DBRefUtils.java @@ -0,0 +1,32 @@ +package jalview.util; + +import java.util.Vector; +import java.util.Hashtable; + +public class DBRefUtils +{ + /** + * Utilities for handling DBRef objects and their collections. + */ + public static Vector selectRefs(java.util.Vector dbrefs, String[] sources) { + if (dbrefs==null) + return null; + if (sources==null) + return dbrefs; + Hashtable srcs = new Hashtable(); + Vector res=new Vector(); + for (int i=0; i0) + return res; + res = null; + // there are probable memory leaks in the hashtable! + return null; + } + } -- 1.7.10.2