package jalview.util; import java.util.*; import jalview.datamodel.*; public class DBRefUtils { /** * Utilities for handling DBRef objects and their collections. */ /** * * @param dbrefs Vector of DBRef objects to search * @param sources String[] array of source DBRef IDs to retrieve * @return Vector */ public static DBRefEntry [] selectRefs(DBRefEntry [] 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) { DBRefEntry [] reply = new DBRefEntry[res.size()]; for(int i=0; i