Package com.jml.util

Class ArrayErrors

java.lang.Object
com.jml.util.ArrayErrors

public class ArrayErrors extends Object
  • 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.