org.hotrod.utils.AUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hotrod-generator Show documentation
Show all versions of hotrod-generator Show documentation
HotRod is an ORM for Java, Spring and SpringBoot.
The newest version!
package org.hotrod.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class AUtils {
public static T[] concat(T[] first, T[] second, T[] zeroLengthArray) {
List both = new ArrayList(first.length + second.length);
Collections.addAll(both, first);
Collections.addAll(both, second);
return both.toArray(zeroLengthArray);
}
}