docs: public static boolean isWholeArray(int rank, int... dimension){
          return rank == 0 || dimension == null || dimension.length == 0 ||
                  (dimension.length == 1 && dimension[0] == Integer.MAX_VALUE) || dimension.length == rank;
      }