01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.util;
10:
11: import java.util.List;
12: import java.util.ArrayList;
13:
14: /**
15: * @author Gennady Krizhevsky
16: */
17: public class ArrayUtil {
18: public static List asList(Object[] values) {
19: if (values == null) {
20: return null;
21: }
22:
23: ArrayList list = new ArrayList(values.length);
24: for (int i = 0; i < values.length; i++) {
25: list.add(values[i]);
26: }
27: return list;
28: }
29: }
|