Package org.dbunit.util
Class CollectionsHelper
java.lang.Object
org.dbunit.util.CollectionsHelper
Helper for collections-related methods.
- Since:
- Nov 5, 2005
- Version:
- $Revision$ $Date$
- Author:
- Felipe Leme (dbunit@felipeal.net), gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
-
Method Summary
Modifier and TypeMethodDescriptionstatic SetobjectsToSet(Object[] objects) Returns a Set from an array of objects.static Object[]setToObjects(Set set) Returns an array of Objects from a Set.static String[]setToStrings(Set set) Returns an array of Strings from a Set.
-
Method Details
-
objectsToSet
Returns a Set from an array of objects. Note the Iterator returned by this Set preserves the order of the array.- Parameters:
objects- array of objects- Returns:
- Set with the elements of the array or null if entry is null
-
setToObjects
Returns an array of Objects from a Set.- Parameters:
set- a Set- Returns:
- array of Objects with the elements of the Set or null if set is null
-
setToStrings
Returns an array of Strings from a Set.- Parameters:
set- a Set of Strings- Returns:
- array of Strings with the elements of the Set or null if set is null
-