ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/extra166y/ParallelDoubleArray.java
(Generate patch)

Comparing jsr166/src/extra166y/ParallelDoubleArray.java (file contents):
Revision 1.3 by jsr166, Mon Dec 5 04:08:47 2011 UTC vs.
Revision 1.6 by jsr166, Tue Aug 14 06:00:55 2012 UTC

# Line 137 | Line 137 | public class ParallelDoubleArray extends
137       * mapped ParallelDoubleArray.
138       */
139      public static interface SummaryStatistics {
140 <        /** Return the number of elements */
140 >        /** Returns the number of elements */
141          public int size();
142 <        /** Return the minimum element, or Double.MAX_VALUE if empty */
142 >        /** Returns the minimum element, or Double.MAX_VALUE if empty */
143          public double min();
144 <        /** Return the maximum element, or -Double.MAX_VALUE if empty */
144 >        /** Returns the maximum element, or -Double.MAX_VALUE if empty */
145          public double max();
146 <        /** Return the index of the minimum element, or -1 if empty */
146 >        /** Returns the index of the minimum element, or -1 if empty */
147          public int indexOfMin();
148 <        /** Return the index of the maximum element, or -1 if empty */
148 >        /** Returns the index of the maximum element, or -1 if empty */
149          public int indexOfMax();
150 <        /** Return the sum of all elements */
150 >        /** Returns the sum of all elements */
151          public double sum();
152 <        /** Return the arithmetic average of all elements */
152 >        /** Returns the arithmetic average of all elements */
153          public double average();
154      }
155  
# Line 502 | Line 502 | public class ParallelDoubleArray extends
502          removeSlotsAt(f.offset, fence);
503          return this;
504      }
505 +
506      /**
507       * Returns true if all elements at the same relative positions
508       * of this and other array are equal.
# Line 922 | Line 923 | public class ParallelDoubleArray extends
923      }
924  
925      /**
926 <     * Make len slots available at index
926 >     * Makes len slots available at index.
927       */
928      final void insertSlotsAt(int index, int len) {
929          if (len <= 0)
# Line 1164 | Line 1165 | public class ParallelDoubleArray extends
1165      }
1166  
1167   }
1167

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines