Package zombie.util.list
Class PZArrayUtil
java.lang.Object
zombie.util.list.PZArrayUtil
public class PZArrayUtil
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PZArrayUtil.Comparators
static interface
PZArrayUtil.IListConverter1Param
-
Field Summary
Fields Modifier and Type Field Description static float[]
emptyFloatArray
static int[]
emptyIntArray
-
Constructor Summary
Constructors Constructor Description PZArrayUtil()
-
Method Summary
Modifier and Type Method Description static float[]
add(float[] floatArray, float float1)
static java.lang.Object[]
add(java.lang.Object[] objectArray, java.lang.Object object)
static int[]
arrayAdd(int[] intArray, int[] intArray2)
static java.util.List
arrayConvert(java.util.List list, java.util.List list2, java.util.function.Function function)
static float[]
arrayCopy(float[] floatArray, float[] floatArray2, int int1, int int2)
static int[]
arrayCopy(int[] intArray, int[] intArray2, int int1, int int2)
static java.lang.Object[]
arrayCopy(java.lang.Object[] objectArray, java.lang.Object[] objectArray2)
static java.lang.Object[]
arrayCopy(java.lang.Object[] objectArray, java.lang.Object[] objectArray2, int int1, int int2)
static java.lang.Object[]
arrayCopy(java.lang.Object[] objectArray, java.util.List list)
static java.util.List
arrayCopy(java.util.List list, java.util.List list2)
static java.lang.Object[]
arrayPopulate(java.lang.Object[] objectArray, java.util.function.Supplier supplier)
static float[]
arraySet(float[] floatArray, float float1)
static int[]
arraySet(int[] intArray, int int1)
static java.lang.Object[]
arraySet(java.lang.Object[] objectArray, java.lang.Object object)
static java.lang.String
arrayToString(float[] floatArray)
static java.lang.String
arrayToString(float[] floatArray, java.lang.String string, java.lang.String string2, java.lang.String string3)
static java.lang.String
arrayToString(java.lang.Iterable iterable)
static java.lang.String
arrayToString(java.lang.Iterable iterable, java.lang.String string, java.lang.String string2, java.lang.String string3)
static java.lang.String
arrayToString(java.lang.Iterable iterable, java.util.function.Function function)
static java.lang.String
arrayToString(java.lang.Iterable iterable, java.util.function.Function function, java.lang.String string, java.lang.String string2, java.lang.String string3)
static java.lang.String
arrayToString(java.lang.Object[] objectArray)
static java.lang.String
arrayToString(java.lang.Object[] objectArray, java.lang.String string, java.lang.String string2, java.lang.String string3)
static float[]
clone(float[] floatArray)
static java.lang.Object[]
clone(java.lang.Object[] objectArray)
static java.lang.Object[]
concat(java.lang.Object[] objectArray, java.lang.Object[] objectArray2)
static boolean
contains(int[] intArray, int int1, int int2)
static boolean
contains(java.lang.Iterable iterable, java.util.function.Predicate predicate)
static boolean
contains(java.lang.Object[] objectArray, java.util.function.Predicate predicate)
static boolean
contains(java.util.Collection collection, java.util.function.Predicate predicate)
static boolean
contains(java.util.List list, java.util.function.Predicate predicate)
static void
copy(java.util.ArrayList arrayList, java.util.ArrayList arrayList2)
static void
copy(java.util.ArrayList arrayList, java.util.ArrayList arrayList2, ICloner iCloner)
static java.lang.Object
find(java.lang.Iterable iterable, java.util.function.Predicate predicate)
static java.lang.Object
find(java.util.List list, java.util.function.Predicate predicate)
static void
forEach(java.lang.Iterable iterable, java.util.function.Consumer consumer)
static void
forEach(java.lang.Object[] objectArray, java.util.function.Consumer consumer)
static void
forEach(java.util.List list, java.util.function.Consumer consumer)
static java.lang.Object
getElementAt(java.lang.Iterable iterable, int int1)
static java.lang.Object
getOrCreate(java.util.HashMap hashMap, java.lang.Object object, java.util.function.Supplier supplier)
static float
getOrDefault(float[] floatArray, int int1, float float1)
static java.lang.Object
getOrDefault(java.lang.Object[] objectArray, int int1, java.lang.Object object)
static java.lang.Object
getOrDefault(java.util.List list, int int1)
static java.lang.Object
getOrDefault(java.util.List list, int int1, java.lang.Object object)
static int
getSize(java.lang.Iterable iterable)
static int
indexOf(int[] intArray, int int1, int int2)
static int
indexOf(java.lang.Object[] objectArray, int int1, java.lang.Object object)
static int
indexOf(java.lang.Object[] objectArray, java.util.function.Predicate predicate)
static int
indexOf(java.util.List list, java.util.function.Predicate predicate)
static void
insertAt(float[] floatArray, int int1, float float1)
static void
insertAt(int[] intArray, int int1, int int2)
static boolean
isNullOrEmpty(float[] floatArray)
static boolean
isNullOrEmpty(int[] intArray)
static boolean
isNullOrEmpty(java.lang.Iterable iterable)
static boolean
isNullOrEmpty(java.lang.Object[] objectArray)
static boolean
isNullOrEmpty(java.util.List list)
static java.lang.Iterable
itConvert(java.lang.Iterable iterable, java.util.function.Function function)
static java.util.List
listConvert(java.util.List list, java.util.function.Function function)
static java.util.List
listConvert(java.util.List list, java.util.List list2, java.lang.Object object, PZArrayUtil.IListConverter1Param iListConverter1Param)
static java.util.List
listConvert(java.util.List list, java.util.List list2, java.util.function.Function function)
static java.lang.Object[]
newInstance(java.lang.Class javaClass, int int1)
static java.lang.Object[]
newInstance(java.lang.Class javaClass, int int1, java.util.function.Supplier supplier)
static java.lang.Object[]
newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1)
static java.lang.Object[]
newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1, boolean boolean1)
static java.lang.Object[]
newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1, boolean boolean1, java.util.function.Supplier supplier)
static java.lang.Object[]
newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1, java.util.function.Supplier supplier)
static java.lang.Object
pickRandom(java.lang.Iterable iterable)
static java.lang.Object
pickRandom(java.lang.Object[] objectArray)
static java.lang.Object
pickRandom(java.util.Collection collection)
static java.lang.Object
pickRandom(java.util.List list)
static boolean
sequenceEqual(java.lang.Object[] objectArray, java.util.List list)
static boolean
sequenceEqual(java.lang.Object[] objectArray, java.util.List list, java.util.Comparator comparator)
static boolean
sequenceEqual(java.util.List list, java.util.List list2)
static boolean
sequenceEqual(java.util.List list, java.util.List list2, java.util.Comparator comparator)
static void
sort(java.util.Stack stack, java.util.Comparator comparator)
static java.lang.Object[]
toArray(java.util.List list)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
emptyIntArray
public static final int[] emptyIntArray -
emptyFloatArray
public static final float[] emptyFloatArray
-
-
Constructor Details
-
PZArrayUtil
public PZArrayUtil()
-
-
Method Details
-
pickRandom
public static java.lang.Object pickRandom(java.lang.Object[] objectArray) -
pickRandom
public static java.lang.Object pickRandom(java.util.List list) -
pickRandom
public static java.lang.Object pickRandom(java.util.Collection collection) -
pickRandom
public static java.lang.Object pickRandom(java.lang.Iterable iterable) -
getSize
public static int getSize(java.lang.Iterable iterable) -
getElementAt
public static java.lang.Object getElementAt(java.lang.Iterable iterable, int int1) throws java.lang.ArrayIndexOutOfBoundsException- Throws:
java.lang.ArrayIndexOutOfBoundsException
-
copy
public static void copy(java.util.ArrayList arrayList, java.util.ArrayList arrayList2) -
copy
public static void copy(java.util.ArrayList arrayList, java.util.ArrayList arrayList2, ICloner iCloner) -
indexOf
public static int indexOf(java.lang.Object[] objectArray, java.util.function.Predicate predicate) -
indexOf
public static int indexOf(java.util.List list, java.util.function.Predicate predicate) -
contains
public static boolean contains(java.lang.Object[] objectArray, java.util.function.Predicate predicate) -
contains
public static boolean contains(java.util.List list, java.util.function.Predicate predicate) -
contains
public static boolean contains(java.util.Collection collection, java.util.function.Predicate predicate) -
contains
public static boolean contains(java.lang.Iterable iterable, java.util.function.Predicate predicate) -
find
public static java.lang.Object find(java.util.List list, java.util.function.Predicate predicate) -
find
public static java.lang.Object find(java.lang.Iterable iterable, java.util.function.Predicate predicate) -
listConvert
public static java.util.List listConvert(java.util.List list, java.util.function.Function function) -
itConvert
public static java.lang.Iterable itConvert(java.lang.Iterable iterable, java.util.function.Function function) -
listConvert
public static java.util.List listConvert(java.util.List list, java.util.List list2, java.util.function.Function function) -
listConvert
public static java.util.List listConvert(java.util.List list, java.util.List list2, java.lang.Object object, PZArrayUtil.IListConverter1Param iListConverter1Param) -
arrayToString
public static java.lang.String arrayToString(float[] floatArray) -
arrayToString
public static java.lang.String arrayToString(float[] floatArray, java.lang.String string, java.lang.String string2, java.lang.String string3) -
arrayToString
public static java.lang.String arrayToString(java.lang.Object[] objectArray) -
arrayToString
public static java.lang.String arrayToString(java.lang.Object[] objectArray, java.lang.String string, java.lang.String string2, java.lang.String string3) -
arrayToString
public static java.lang.String arrayToString(java.lang.Iterable iterable, java.util.function.Function function) -
arrayToString
public static java.lang.String arrayToString(java.lang.Iterable iterable) -
arrayToString
public static java.lang.String arrayToString(java.lang.Iterable iterable, java.lang.String string, java.lang.String string2, java.lang.String string3) -
arrayToString
public static java.lang.String arrayToString(java.lang.Iterable iterable, java.util.function.Function function, java.lang.String string, java.lang.String string2, java.lang.String string3) -
newInstance
public static java.lang.Object[] newInstance(java.lang.Class javaClass, int int1) -
newInstance
public static java.lang.Object[] newInstance(java.lang.Class javaClass, int int1, java.util.function.Supplier supplier) -
newInstance
public static java.lang.Object[] newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1) -
newInstance
public static java.lang.Object[] newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1, boolean boolean1) -
newInstance
public static java.lang.Object[] newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1, java.util.function.Supplier supplier) -
newInstance
public static java.lang.Object[] newInstance(java.lang.Class javaClass, java.lang.Object[] objectArray, int int1, boolean boolean1, java.util.function.Supplier supplier) -
add
public static float[] add(float[] floatArray, float float1) -
add
public static java.lang.Object[] add(java.lang.Object[] objectArray, java.lang.Object object) -
concat
public static java.lang.Object[] concat(java.lang.Object[] objectArray, java.lang.Object[] objectArray2) -
arrayCopy
public static java.lang.Object[] arrayCopy(java.lang.Object[] objectArray, java.lang.Object[] objectArray2, int int1, int int2) -
arrayCopy
public static float[] arrayCopy(float[] floatArray, float[] floatArray2, int int1, int int2) -
arrayCopy
public static int[] arrayCopy(int[] intArray, int[] intArray2, int int1, int int2) -
arrayCopy
public static java.util.List arrayCopy(java.util.List list, java.util.List list2) -
arrayCopy
public static java.lang.Object[] arrayCopy(java.lang.Object[] objectArray, java.util.List list) -
arrayCopy
public static java.lang.Object[] arrayCopy(java.lang.Object[] objectArray, java.lang.Object[] objectArray2) -
arrayConvert
public static java.util.List arrayConvert(java.util.List list, java.util.List list2, java.util.function.Function function) -
clone
public static float[] clone(float[] floatArray) -
clone
public static java.lang.Object[] clone(java.lang.Object[] objectArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(java.lang.Object[] objectArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(int[] intArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(float[] floatArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(java.util.List list) -
isNullOrEmpty
public static boolean isNullOrEmpty(java.lang.Iterable iterable) -
getOrDefault
public static java.lang.Object getOrDefault(java.util.List list, int int1) -
getOrDefault
public static java.lang.Object getOrDefault(java.util.List list, int int1, java.lang.Object object) -
getOrDefault
public static java.lang.Object getOrDefault(java.lang.Object[] objectArray, int int1, java.lang.Object object) -
getOrDefault
public static float getOrDefault(float[] floatArray, int int1, float float1) -
arraySet
public static int[] arraySet(int[] intArray, int int1) -
arraySet
public static float[] arraySet(float[] floatArray, float float1) -
arraySet
public static java.lang.Object[] arraySet(java.lang.Object[] objectArray, java.lang.Object object) -
arrayPopulate
public static java.lang.Object[] arrayPopulate(java.lang.Object[] objectArray, java.util.function.Supplier supplier) -
insertAt
public static void insertAt(int[] intArray, int int1, int int2) -
insertAt
public static void insertAt(float[] floatArray, int int1, float float1) -
toArray
public static java.lang.Object[] toArray(java.util.List list) -
indexOf
public static int indexOf(java.lang.Object[] objectArray, int int1, java.lang.Object object) -
indexOf
public static int indexOf(int[] intArray, int int1, int int2) -
contains
public static boolean contains(int[] intArray, int int1, int int2) -
forEach
public static void forEach(java.util.List list, java.util.function.Consumer consumer) -
forEach
public static void forEach(java.lang.Iterable iterable, java.util.function.Consumer consumer) -
forEach
public static void forEach(java.lang.Object[] objectArray, java.util.function.Consumer consumer) -
getOrCreate
public static java.lang.Object getOrCreate(java.util.HashMap hashMap, java.lang.Object object, java.util.function.Supplier supplier) -
sort
public static void sort(java.util.Stack stack, java.util.Comparator comparator) -
sequenceEqual
public static boolean sequenceEqual(java.lang.Object[] objectArray, java.util.List list) -
sequenceEqual
public static boolean sequenceEqual(java.lang.Object[] objectArray, java.util.List list, java.util.Comparator comparator) -
sequenceEqual
public static boolean sequenceEqual(java.util.List list, java.util.List list2) -
sequenceEqual
public static boolean sequenceEqual(java.util.List list, java.util.List list2, java.util.Comparator comparator) -
arrayAdd
public static int[] arrayAdd(int[] intArray, int[] intArray2)
-