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

Comparing jsr166/src/extra166y/ParallelDoubleArrayWithLongMapping.java (file contents):
Revision 1.3 by jsr166, Wed Jul 4 20:13:53 2012 UTC vs.
Revision 1.4 by jsr166, Sat Dec 29 23:55:19 2012 UTC

# Line 24 | Line 24 | public abstract class ParallelDoubleArra
24      }
25  
26      /**
27 <     * Applies the given procedure
27 >     * Applies the given procedure.
28       * @param procedure the procedure
29       */
30      public void apply(LongProcedure procedure) {
# Line 32 | Line 32 | public abstract class ParallelDoubleArra
32      }
33  
34      /**
35 <     * Returns reduction of mapped elements
35 >     * Returns reduction of mapped elements.
36       * @param reducer the reducer
37       * @param base the result for an empty array
38       * @return reduction
# Line 45 | Line 45 | public abstract class ParallelDoubleArra
45      }
46  
47      /**
48 <     * Returns the minimum element, or Long.MAX_VALUE if empty
48 >     * Returns the minimum element, or Long.MAX_VALUE if empty.
49       * @return minimum element, or Long.MAX_VALUE if empty
50       */
51      public long min() {
# Line 53 | Line 53 | public abstract class ParallelDoubleArra
53      }
54  
55      /**
56 <     * Returns the minimum element, or Long.MAX_VALUE if empty
56 >     * Returns the minimum element, or Long.MAX_VALUE if empty.
57       * @param comparator the comparator
58       * @return minimum element, or Long.MAX_VALUE if empty
59       */
# Line 62 | Line 62 | public abstract class ParallelDoubleArra
62      }
63  
64      /**
65 <     * Returns the maximum element, or Long.MIN_VALUE if empty
65 >     * Returns the maximum element, or Long.MIN_VALUE if empty.
66       * @return maximum element, or Long.MIN_VALUE if empty
67       */
68      public long max() {
# Line 70 | Line 70 | public abstract class ParallelDoubleArra
70      }
71  
72      /**
73 <     * Returns the maximum element, or Long.MIN_VALUE if empty
73 >     * Returns the maximum element, or Long.MIN_VALUE if empty.
74       * @param comparator the comparator
75       * @return maximum element, or Long.MIN_VALUE if empty
76       */
# Line 79 | Line 79 | public abstract class ParallelDoubleArra
79      }
80  
81      /**
82 <     * Returns the sum of elements
82 >     * Returns the sum of elements.
83       * @return the sum of elements
84       */
85      public long sum() {
# Line 87 | Line 87 | public abstract class ParallelDoubleArra
87      }
88  
89      /**
90 <     * Returns summary statistics
90 >     * Returns summary statistics.
91       * @param comparator the comparator to use for
92       * locating minimum and maximum elements
93 <     * @return the summary.
93 >     * @return the summary
94       */
95      public ParallelLongArray.SummaryStatistics summary
96          (LongComparator comparator) {
# Line 101 | Line 101 | public abstract class ParallelDoubleArra
101      }
102  
103      /**
104 <     * Returns summary statistics, using natural comparator
105 <     * @return the summary.
104 >     * Returns summary statistics, using natural comparator.
105 >     * @return the summary
106       */
107      public ParallelLongArray.SummaryStatistics summary() {
108          return summary(CommonOps.naturalLongComparator());
109      }
110  
111      /**
112 <     * Returns a new ParallelLongArray holding mappings
112 >     * Returns a new ParallelLongArray holding mappings.
113       * @return a new ParallelLongArray holding mappings
114       */
115      public ParallelLongArray all() {
# Line 150 | Line 150 | public abstract class ParallelDoubleArra
150       * @param other the other array
151       * @return operation prefix
152       * @throws IllegalArgumentException if other array is a
153 <     * filtered view (all filters must precede all mappings).
153 >     * filtered view (all filters must precede all mappings)
154       */
155      public <V,W,X> ParallelDoubleArrayWithMapping<W> withMapping
156          (LongAndObjectToObject<? super V, ? extends W> combiner,
# Line 166 | Line 166 | public abstract class ParallelDoubleArra
166       * @param other the other array
167       * @return operation prefix
168       * @throws IllegalArgumentException if other array is a
169 <     * filtered view (all filters must precede all mappings).
169 >     * filtered view (all filters must precede all mappings)
170       */
171      public <V> ParallelDoubleArrayWithMapping<V> withMapping
172          (LongAndDoubleToObject<? extends V> combiner,
# Line 182 | Line 182 | public abstract class ParallelDoubleArra
182       * @param other the other array
183       * @return operation prefix
184       * @throws IllegalArgumentException if other array is a
185 <     * filtered view (all filters must precede all mappings).
185 >     * filtered view (all filters must precede all mappings)
186       */
187      public <V> ParallelDoubleArrayWithMapping<V> withMapping
188          (LongAndLongToObject<? extends V> combiner,
# Line 198 | Line 198 | public abstract class ParallelDoubleArra
198       * @param other the other array
199       * @return operation prefix
200       * @throws IllegalArgumentException if other array is a
201 <     * filtered view (all filters must precede all mappings).
201 >     * filtered view (all filters must precede all mappings)
202       */
203      public <V,W> ParallelDoubleArrayWithDoubleMapping withMapping
204          (LongAndObjectToDouble<? super V> combiner,
# Line 214 | Line 214 | public abstract class ParallelDoubleArra
214       * @param other the other array
215       * @return operation prefix
216       * @throws IllegalArgumentException if other array is a
217 <     * filtered view (all filters must precede all mappings).
217 >     * filtered view (all filters must precede all mappings)
218       */
219      public ParallelDoubleArrayWithDoubleMapping withMapping
220          (LongAndDoubleToDouble combiner,
# Line 230 | Line 230 | public abstract class ParallelDoubleArra
230       * @param other the other array
231       * @return operation prefix
232       * @throws IllegalArgumentException if other array is a
233 <     * filtered view (all filters must precede all mappings).
233 >     * filtered view (all filters must precede all mappings)
234       */
235      public ParallelDoubleArrayWithDoubleMapping withMapping
236          (LongAndLongToDouble combiner,
# Line 246 | Line 246 | public abstract class ParallelDoubleArra
246       * @param other the other array
247       * @return operation prefix
248       * @throws IllegalArgumentException if other array is a
249 <     * filtered view (all filters must precede all mappings).
249 >     * filtered view (all filters must precede all mappings)
250       */
251      public <V,W> ParallelDoubleArrayWithLongMapping withMapping
252          (LongAndObjectToLong<? super V> combiner,
# Line 262 | Line 262 | public abstract class ParallelDoubleArra
262       * @param other the other array
263       * @return operation prefix
264       * @throws IllegalArgumentException if other array is a
265 <     * filtered view (all filters must precede all mappings).
265 >     * filtered view (all filters must precede all mappings)
266       */
267      public ParallelDoubleArrayWithLongMapping withMapping
268          (LongAndDoubleToLong combiner,
# Line 278 | Line 278 | public abstract class ParallelDoubleArra
278       * @param other the other array
279       * @return operation prefix
280       * @throws IllegalArgumentException if other array is a
281 <     * filtered view (all filters must precede all mappings).
281 >     * filtered view (all filters must precede all mappings)
282       */
283      public ParallelDoubleArrayWithLongMapping withMapping
284          (BinaryLongOp combiner,
# Line 326 | Line 326 | public abstract class ParallelDoubleArra
326      /**
327       * Returns an Iterable view to sequentially step through mapped
328       * elements also obeying bound and filter constraints, without
329 <     * performing computations to evaluate them in parallel
329 >     * performing computations to evaluate them in parallel.
330       * @return the Iterable view
331       */
332      public Iterable<Long> sequentially() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines