com.sixestates.utils.Lists Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of idp-sdk Show documentation
Show all versions of idp-sdk Show documentation
A Java SDK for communicating with the 6Estates Intelligent Document Processing(IDP) Platform
package com.sixestates.utils;
import java.util.ArrayList;
import java.util.Collections;
/**
* @author kechen, 06/08/24.
*/
public class Lists {
public static ArrayList newArrayList(T... elements) {
if (elements == null) {
return null;
}
ArrayList list = new ArrayList<>();
Collections.addAll(list, elements);
return list;
}
}