code: public static void checkArrayLength(String parameterName, float[] array,
              int expectedLength) {
          checkNotNull(parameterName, array);
          checkArrayLength(parameterName, array.length, expectedLength);
      }
docs: Check that the parameter array is non-{@code null} and that it has
  exactly the right number of elements.
  
  @param parameterName
  The name of the user-supplied parameter that we are validating
  so that the user can easily find the error in their code.
  @param array
  The array to check
  @param expectedLength
  The expected array length