Package dev.prozilla.pine.common.util
Class Arrays
java.lang.Object
dev.prozilla.pine.common.util.Arrays
Deprecated.
Static utility methods for checking certain conditions before operation on arrays.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> void
requireDisjunct
(E[] arrayA, E[] arrayB) Deprecated.static <E> void
requireDisjunct
(E[] arrayA, E[] arrayB, String message) Deprecated.static <E> E[]
requireLength
(E[] array, int length) Deprecated.static <E> E[]
requireLength
(E[] array, int length, String message) Deprecated.static <E> E[]
requireMaxLength
(E[] array, int maxLength) Deprecated.static <E> E[]
requireMaxLength
(E[] array, int maxLength, String message) Deprecated.static <E> E[]
requireMinLength
(E[] array, int minLength) Deprecated.static <E> E[]
requireMinLength
(E[] array, int minLength, String message) Deprecated.static <E> E[]
requireNonEmpty
(E[] array) Deprecated.static <E> E[]
requireNonEmpty
(E[] array, String message) Deprecated.
-
Constructor Details
-
Arrays
public Arrays()Deprecated.
-
-
Method Details
-
requireDisjunct
Deprecated.- Throws:
InvalidArrayException
-
requireDisjunct
public static <E> void requireDisjunct(E[] arrayA, E[] arrayB, String message) throws InvalidArrayException Deprecated.- Throws:
InvalidArrayException
-
requireNonEmpty
Deprecated.- Throws:
InvalidArrayException
-
requireNonEmpty
Deprecated.- Throws:
InvalidArrayException
-
requireMinLength
Deprecated.- Throws:
InvalidArrayException
-
requireMinLength
public static <E> E[] requireMinLength(E[] array, int minLength, String message) throws InvalidArrayException Deprecated.- Throws:
InvalidArrayException
-
requireMaxLength
Deprecated.- Throws:
InvalidArrayException
-
requireMaxLength
public static <E> E[] requireMaxLength(E[] array, int maxLength, String message) throws InvalidArrayException Deprecated.- Throws:
InvalidArrayException
-
requireLength
Deprecated.- Throws:
InvalidArrayException
-
requireLength
public static <E> E[] requireLength(E[] array, int length, String message) throws InvalidArrayException Deprecated.- Throws:
InvalidArrayException
-
Checks
as of 1.2.0