Skip to content
Snippets Groups Projects
Commit 370e8165 authored by brinn's avatar brinn
Browse files

fix: make filterExternalDataByType() work with a Collection, rather than a List

SVN: 17200
parent 5159a214
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
package ch.systemsx.cisd.openbis.plugin.screening.server.logic; package ch.systemsx.cisd.openbis.plugin.screening.server.logic;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
import java.util.List; import java.util.List;
import ch.systemsx.cisd.bds.hcs.Location; import ch.systemsx.cisd.bds.hcs.Location;
...@@ -84,7 +85,7 @@ public class ScreeningUtils ...@@ -84,7 +85,7 @@ public class ScreeningUtils
return dataset.getDataSetType().getCode().equals(datasetType); return dataset.getDataSetType().getCode().equals(datasetType);
} }
public static List<ExternalData> filterExternalDataByType(List<ExternalData> datasets, public static List<ExternalData> filterExternalDataByType(Collection<ExternalData> datasets,
String... datasetTypeCodes) String... datasetTypeCodes)
{ {
List<ExternalData> chosenDatasets = new ArrayList<ExternalData>(); List<ExternalData> chosenDatasets = new ArrayList<ExternalData>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment