com.volcengine.ark.runtime.utils.Converter Maven / Gradle / Ivy
package com.volcengine.ark.runtime.utils;
import java.util.ArrayList;
import java.util.List;
public class Converter {
public static List castList(Object obj, Class clazz)
{
List result = new ArrayList();
if(obj instanceof List>)
{
for (Object o : (List>) obj)
{
result.add(clazz.cast(o));
}
return result;
}
return null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy