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