From 5ad812074b82ee2b7411f9ddf9b3247ab01a49db Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 15 Apr 2023 04:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20Arrays2=20?= =?UTF-8?q?=E7=B1=BB=E4=B8=BA=20ArrayUtil=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=AD=BE=E5=90=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../util/{Arrays2.java => ArrayUtil.java} | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) rename src/main/java/xyz/zhouxy/plusone/commons/util/{Arrays2.java => ArrayUtil.java} (63%) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/Arrays2.java b/src/main/java/xyz/zhouxy/plusone/commons/util/ArrayUtil.java similarity index 63% rename from src/main/java/xyz/zhouxy/plusone/commons/util/Arrays2.java rename to src/main/java/xyz/zhouxy/plusone/commons/util/ArrayUtil.java index 95eb458..23f6133 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/Arrays2.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/ArrayUtil.java @@ -16,46 +16,46 @@ package xyz.zhouxy.plusone.commons.util; -public abstract class Arrays2 { +public class ArrayUtil { @SafeVarargs - public static T[] of(final T... values) { + public static T[] newArray(final T... values) { return values; } - public static short[] of(final short... values) { + public static short[] newArray(final short... values) { return values; } - public static int[] of(final int... values) { + public static int[] newArray(final int... values) { return values; } - public static long[] of(final long... values) { + public static long[] newArray(final long... values) { return values; } - public static byte[] of(final byte... values) { + public static byte[] newArray(final byte... values) { return values; } - public static boolean[] of(final boolean... values) { + public static boolean[] newArray(final boolean... values) { return values; } - public static char[] of(final char... values) { + public static char[] newArray(final char... values) { return values; } - public static double[] of(final double... values) { + public static double[] newArray(final double... values) { return values; } - public static float[] of(final float... values) { + public static float[] newArray(final float... values) { return values; } - private Arrays2() { + private ArrayUtil() { throw new IllegalStateException("Utility class"); } }