Package com.jml.util
Class ArrayErrors
java.lang.Object
com.jml.util.ArrayErrors
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkNotEmpty(double[] arr)
Checks to see if array is empty.static void
checkSameLength(double[] arr1, double[] arr2)
Checks to see if two arrays have the same number of entries
-
Method Details
-
checkNotEmpty
public static void checkNotEmpty(double[] arr)Checks to see if array is empty.- Parameters:
arr
- Array in question.- Throws:
IllegalArgumentException
- If array is empty
-
checkSameLength
public static void checkSameLength(double[] arr1, double[] arr2)Checks to see if two arrays have the same number of entries- Parameters:
arr1
- Array one in question.arr2
- Array two in question.- Throws:
IllegalArgumentException
- If arrays differ in length.
-