code: public static boolean wholeArrayDimension(int... arr) {
          return arr == null || arr.length == 0 || (arr.length == 1 && arr[0] == Integer.MAX_VALUE);
      }
docs: Returns true if the given array
  is meant for the whole dimension
  @param arr the array to test
  @return true if arr.length == 1 && arr[0] is Integer.MAX_VALUE