From: jprocter Date: Tue, 14 Mar 2006 11:22:04 +0000 (+0000) Subject: methods for searching DBRef lists X-Git-Tag: Root_VamJalview_2_07b+~68 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=869913baf5d81e99c37727bae7ca8652e6abfb8b;hp=4944c2f33bb34b4f262fd2f3ae40dcdc2a825557;p=jalview.git methods for searching DBRef lists --- 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; + } + }