com.conradroche.matra.util
Class Caster
java.lang.Object
|
+--com.conradroche.matra.util.Caster
- public class Caster
- extends Object
Utility class for Casting an array object from
one type to another.
- Author:
- Conrad Roche
getInstance
public static Caster getInstance()
- Deprecated.
- Method to return the single instance
of Caster.
- Returns:
- The singleton instance.
convertToStringArray
public String[] convertToStringArray(Collection coll)
- Deprecated.
- Convert a Collection to a String Array.
The assumption is that all the elements of
this collection are String.
- Parameters:
coll
- The collection to be casted.- Returns:
- The String[] with the data in the collection.