com.compoze.collab.util
Class CollectionUtility

java.lang.Object
  extended by com.compoze.collab.util.CollectionUtility

public class CollectionUtility
extends Object

Class description.


Method Summary
static void addArrayToCollection(Collection c, Object[] array)
          Adds all elements in an array to a collection.
static void copySerializableObjects(Map source, Map target)
          Copies only Serializable objects from one Map to another.
static ArrayList createArrayList(Object[] array)
          Creates a properly sized ArrayList from an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createArrayList

public static ArrayList createArrayList(Object[] array)
Creates a properly sized ArrayList from an array.

Returns
the array list

addArrayToCollection

public static void addArrayToCollection(Collection c,
                                        Object[] array)
Adds all elements in an array to a collection.

Parameters
c - the collection (not null)
array - the array (not null)

copySerializableObjects

public static void copySerializableObjects(Map source,
                                           Map target)
Copies only Serializable objects from one Map to another.

Parameters
source - the source map (not null)
target - the target map (not null)


Copyright © 2006 BEA Systems, Inc. All Rights Reserved