
org.hotrod.utils.AUtils Maven / Gradle / Ivy
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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy