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

Comparing jsr166/src/extra166y/ParallelArrayWithLongMapping.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 ParallelArrayWithL
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 ParallelArrayWithL
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 ParallelArrayWithL
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 ParallelArrayWithL
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 ParallelArrayWithL
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 ParallelArrayWithL
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 ParallelArrayWithL
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 ParallelArrayWithL
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 ParallelArrayWithL
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 148 | Line 148 | public abstract class ParallelArrayWithL
148       * @param other the other array
149       * @return operation prefix
150       * @throws IllegalArgumentException if other array is a
151 <     * filtered view (all filters must precede all mappings).
151 >     * filtered view (all filters must precede all mappings)
152       */
153      public <V,W,X> ParallelArrayWithMapping<T,W> withMapping
154          (LongAndObjectToObject<? super V, ? extends W> combiner,
# Line 165 | Line 165 | public abstract class ParallelArrayWithL
165       * @param other the other array
166       * @return operation prefix
167       * @throws IllegalArgumentException if other array is a
168 <     * filtered view (all filters must precede all mappings).
168 >     * filtered view (all filters must precede all mappings)
169       */
170      public <V> ParallelArrayWithMapping<T,V> withMapping
171          (LongAndDoubleToObject<? extends V> combiner,
# Line 182 | Line 182 | public abstract class ParallelArrayWithL
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> ParallelArrayWithMapping<T,V> withMapping
188          (LongAndLongToObject<? extends V> combiner,
# Line 199 | Line 199 | public abstract class ParallelArrayWithL
199       * @param other the other array
200       * @return operation prefix
201       * @throws IllegalArgumentException if other array is a
202 <     * filtered view (all filters must precede all mappings).
202 >     * filtered view (all filters must precede all mappings)
203       */
204      public <V,W> ParallelArrayWithDoubleMapping<T> withMapping
205          (LongAndObjectToDouble<? super V> combiner,
# Line 216 | Line 216 | public abstract class ParallelArrayWithL
216       * @param other the other array
217       * @return operation prefix
218       * @throws IllegalArgumentException if other array is a
219 <     * filtered view (all filters must precede all mappings).
219 >     * filtered view (all filters must precede all mappings)
220       */
221      public ParallelArrayWithDoubleMapping<T> withMapping
222          (LongAndDoubleToDouble combiner,
# Line 234 | Line 234 | public abstract class ParallelArrayWithL
234       * @param other the other array
235       * @return operation prefix
236       * @throws IllegalArgumentException if other array is a
237 <     * filtered view (all filters must precede all mappings).
237 >     * filtered view (all filters must precede all mappings)
238       */
239      public ParallelArrayWithDoubleMapping<T> withMapping
240          (LongAndLongToDouble combiner,
# Line 251 | Line 251 | public abstract class ParallelArrayWithL
251       * @param other the other array
252       * @return operation prefix
253       * @throws IllegalArgumentException if other array is a
254 <     * filtered view (all filters must precede all mappings).
254 >     * filtered view (all filters must precede all mappings)
255       */
256      public <V,W> ParallelArrayWithLongMapping<T> withMapping
257          (LongAndObjectToLong<? super V> combiner,
# Line 269 | Line 269 | public abstract class ParallelArrayWithL
269       * @param other the other array
270       * @return operation prefix
271       * @throws IllegalArgumentException if other array is a
272 <     * filtered view (all filters must precede all mappings).
272 >     * filtered view (all filters must precede all mappings)
273       */
274      public ParallelArrayWithLongMapping<T> withMapping
275          (LongAndDoubleToLong combiner,
# Line 287 | Line 287 | public abstract class ParallelArrayWithL
287       * @param other the other array
288       * @return operation prefix
289       * @throws IllegalArgumentException if other array is a
290 <     * filtered view (all filters must precede all mappings).
290 >     * filtered view (all filters must precede all mappings)
291       */
292      public ParallelArrayWithLongMapping<T> withMapping
293          (BinaryLongOp combiner,
# Line 336 | Line 336 | public abstract class ParallelArrayWithL
336      /**
337       * Returns an Iterable view to sequentially step through mapped
338       * elements also obeying bound and filter constraints, without
339 <     * performing computations to evaluate them in parallel
339 >     * performing computations to evaluate them in parallel.
340       * @return the Iterable view
341       */
342      public Iterable<Long> sequentially() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines