All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hotrod.utils.AUtils Maven / Gradle / Ivy

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);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy