diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/Arrays2.java b/src/main/java/xyz/zhouxy/plusone/commons/util/Arrays2.java new file mode 100644 index 0000000..829dbb2 --- /dev/null +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/Arrays2.java @@ -0,0 +1,37 @@ +package xyz.zhouxy.plusone.commons.util; + +public abstract class Arrays2 { + + @SafeVarargs + public static T[] of(final T... values) { + return values; + } + + public static short[] of(final short... values) { + return values; + } + + public static int[] of(final int... values) { + return values; + } + + public static long[] of(final long... values) { + return values; + } + + public static byte[] of(final byte... values) { + return values; + } + + public static boolean[] of(final boolean... values) { + return values; + } + + public static char[] of(final char... values) { + return values; + } + + private Arrays2() { + throw new IllegalStateException("Utility class"); + } +}