Adds a new Lists utility helper

This commit is contained in:
zontreck 2023-12-18 13:16:18 -07:00
parent 05970bdefc
commit 16e49bedfc

View file

@ -0,0 +1,23 @@
package dev.zontreck.ariaslib.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Lists
{
public static <T> List<T> of(T... values)
{
List<T> arr = new ArrayList<>();
for(T value : values)
{
arr.add(value);
}
return arr;
}
private Lists(){
}
}