From 99dd9fc06ec0f1d6bf6a9789d0ecc3a7c111ee3a Mon Sep 17 00:00:00 2001
From: jakubs <jakubs>
Date: Mon, 10 Nov 2014 07:43:30 +0000
Subject: [PATCH] SSDM-1187 add one more overload for extractCodes

SVN: 32763
---
 .../cisd/openbis/generic/shared/basic/dto/Code.java | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/Code.java b/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/Code.java
index 5da1653842a..51c092076d6 100644
--- a/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/Code.java
+++ b/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/Code.java
@@ -115,6 +115,19 @@ public class Code<T extends Code<T>> implements Serializable, ICodeHolder, Compa
         return codes;
     }
 
+    public final static List<String> extractCodes(ICodeHolder[] codeProviders)
+    {
+        List<String> codes = new ArrayList<String>();
+        if (codeProviders != null)
+        {
+            for (ICodeHolder codeProvider : codeProviders)
+            {
+                codes.add(codeProvider.getCode());
+            }
+        }
+        return codes;
+    }
+
     public final static String[] extractCodesToArray(Collection<? extends ICodeHolder> codeProviders)
     {
         int size = (codeProviders == null) ? 0 : codeProviders.size();
-- 
GitLab