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

org.bbottema.javareflection.util.MiscUtil Maven / Gradle / Ivy

Go to download

Java Reflection provides a small package with nifty reflection features that will help with finding constructors, methods and value conversions

There is a newer version: 4.1.0
Show newest version
package org.bbottema.javareflection.util;

import lombok.experimental.UtilityClass;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

@UtilityClass
public final class MiscUtil {
	
	@SafeVarargs
	@SuppressWarnings("varargs")
	public static  List newArrayList(T... o) {
		ArrayList l = new ArrayList<>();
		Collections.addAll(l, o);
		return l;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy