public class RectangularArraySummary extends RJavaArrayIterator
array, dimensions, dimprod, increment, index, nd, position, start| Constructor and Description | 
|---|
| RectangularArraySummary(java.lang.Object array,
                       int length) | 
| RectangularArraySummary(java.lang.Object array,
                       int[] dimensions)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkComparableObjects() | 
| boolean | containsComparableObjects() | 
| java.lang.Object | max(boolean narm)Iterates over the array to find the maximum value
 (in the sense of the Comparable interface) | 
| java.lang.Object | min(boolean narm)Iterates over the array to find the minimum value
 (in the sense of the Comparable interface) | 
| java.lang.Object[] | range(boolean narm)Iterates over the array to find the range of the java array
 (in the sense of the Comparable interface) | 
getArray, getArrayClassName, getDimensions, hasNext, nextpublic RectangularArraySummary(java.lang.Object array,
                               int[] dimensions)
                        throws NotAnArrayException,
                               NotComparableException
array - the array to checkNotAnArrayException - if array is not an arrayNotComparableExceptionpublic RectangularArraySummary(java.lang.Object array,
                               int length)
                        throws NotAnArrayException,
                               NotComparableException
public java.lang.Object min(boolean narm)
public java.lang.Object max(boolean narm)
public java.lang.Object[] range(boolean narm)
public void checkComparableObjects()
                            throws NotComparableException
NotComparableExceptionpublic boolean containsComparableObjects()