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

Comparing jsr166/src/extra166y/ParallelLongArrayWithLongMapping.java (file contents):
Revision 1.2 by jsr166, Tue Mar 15 19:47:02 2011 UTC vs.
Revision 1.5 by jsr166, Sun Jan 18 20:17:32 2015 UTC

# Line 5 | Line 5
5   */
6  
7   package extra166y;
8 +
9   import jsr166y.*;
10   import static extra166y.Ops.*;
11   import java.util.*;
# Line 24 | Line 25 | public abstract class ParallelLongArrayW
25      }
26  
27      /**
28 <     * Applies the given procedure to elements
28 >     * Applies the given procedure to elements.
29       * @param procedure the procedure
30       */
31      public void apply(LongProcedure procedure) {
# Line 32 | Line 33 | public abstract class ParallelLongArrayW
33      }
34  
35      /**
36 <     * Returns reduction of elements
36 >     * Returns reduction of elements.
37       * @param reducer the reducer
38       * @param base the result for an empty array
39       * @return reduction
# Line 45 | Line 46 | public abstract class ParallelLongArrayW
46      }
47  
48      /**
49 <     * Returns the minimum element, or Long.MAX_VALUE if empty
49 >     * Returns the minimum element, or Long.MAX_VALUE if empty.
50       * @return minimum element, or Long.MAX_VALUE if empty
51       */
52      public long min() {
# Line 53 | Line 54 | public abstract class ParallelLongArrayW
54      }
55  
56      /**
57 <     * Returns the minimum element, or Long.MAX_VALUE if empty
57 >     * Returns the minimum element, or Long.MAX_VALUE if empty.
58       * @param comparator the comparator
59       * @return minimum element, or Long.MAX_VALUE if empty
60       */
# Line 62 | Line 63 | public abstract class ParallelLongArrayW
63      }
64  
65      /**
66 <     * Returns the maximum element, or Long.MIN_VALUE if empty
66 >     * Returns the maximum element, or Long.MIN_VALUE if empty.
67       * @return maximum element, or Long.MIN_VALUE if empty
68       */
69      public long max() {
# Line 70 | Line 71 | public abstract class ParallelLongArrayW
71      }
72  
73      /**
74 <     * Returns the maximum element, or Long.MIN_VALUE if empty
74 >     * Returns the maximum element, or Long.MIN_VALUE if empty.
75       * @param comparator the comparator
76       * @return maximum element, or Long.MIN_VALUE if empty
77       */
# Line 79 | Line 80 | public abstract class ParallelLongArrayW
80      }
81  
82      /**
83 <     * Returns the sum of elements
83 >     * Returns the sum of elements.
84       * @return the sum of elements
85       */
86      public long sum() {
# Line 87 | Line 88 | public abstract class ParallelLongArrayW
88      }
89  
90      /**
91 <     * Returns summary statistics
91 >     * Returns summary statistics.
92       * @param comparator the comparator to use for
93       * locating minimum and maximum elements
94 <     * @return the summary.
94 >     * @return the summary
95       */
96      public ParallelLongArray.SummaryStatistics summary
97          (LongComparator comparator) {
# Line 101 | Line 102 | public abstract class ParallelLongArrayW
102      }
103  
104      /**
105 <     * Returns summary statistics, using natural comparator
106 <     * @return the summary.
105 >     * Returns summary statistics, using natural comparator.
106 >     * @return the summary
107       */
108      public ParallelLongArray.SummaryStatistics summary() {
109          return summary(CommonOps.naturalLongComparator());
110      }
111  
112      /**
113 <     * Returns a new ParallelLongArray holding elements
113 >     * Returns a new ParallelLongArray holding elements.
114       * @return a new ParallelLongArray holding elements
115       */
116      public ParallelLongArray all() {
# Line 149 | Line 150 | public abstract class ParallelLongArrayW
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> ParallelLongArrayWithMapping<W> withMapping
156          (LongAndObjectToObject<? super V, ? extends W> combiner,
# Line 166 | Line 167 | public abstract class ParallelLongArrayW
167       * @param other the other array
168       * @return operation prefix
169       * @throws IllegalArgumentException if other array is a
170 <     * filtered view (all filters must precede all mappings).
170 >     * filtered view (all filters must precede all mappings)
171       */
172      public <V> ParallelLongArrayWithMapping<V> withMapping
173          (LongAndDoubleToObject<? extends V> combiner,
# Line 184 | Line 185 | public abstract class ParallelLongArrayW
185       * @param other the other array
186       * @return operation prefix
187       * @throws IllegalArgumentException if other array is a
188 <     * filtered view (all filters must precede all mappings).
188 >     * filtered view (all filters must precede all mappings)
189       */
190      public <V> ParallelLongArrayWithMapping<V> withMapping
191          (LongAndLongToObject<? extends V> combiner,
# Line 201 | Line 202 | public abstract class ParallelLongArrayW
202       * @param other the other array
203       * @return operation prefix
204       * @throws IllegalArgumentException if other array is a
205 <     * filtered view (all filters must precede all mappings).
205 >     * filtered view (all filters must precede all mappings)
206       */
207      public <V,W> ParallelLongArrayWithDoubleMapping withMapping
208          (LongAndObjectToDouble<? super V> combiner,
# Line 218 | Line 219 | public abstract class ParallelLongArrayW
219       * @param other the other array
220       * @return operation prefix
221       * @throws IllegalArgumentException if other array is a
222 <     * filtered view (all filters must precede all mappings).
222 >     * filtered view (all filters must precede all mappings)
223       */
224      public ParallelLongArrayWithDoubleMapping withMapping
225          (LongAndDoubleToDouble combiner,
# Line 235 | Line 236 | public abstract class ParallelLongArrayW
236       * @param other the other array
237       * @return operation prefix
238       * @throws IllegalArgumentException if other array is a
239 <     * filtered view (all filters must precede all mappings).
239 >     * filtered view (all filters must precede all mappings)
240       */
241      public ParallelLongArrayWithDoubleMapping withMapping
242          (LongAndLongToDouble combiner,
# Line 252 | Line 253 | public abstract class ParallelLongArrayW
253       * @param other the other array
254       * @return operation prefix
255       * @throws IllegalArgumentException if other array is a
256 <     * filtered view (all filters must precede all mappings).
256 >     * filtered view (all filters must precede all mappings)
257       */
258      public <V,W> ParallelLongArrayWithLongMapping withMapping
259          (LongAndObjectToLong<? super V> combiner,
# Line 269 | Line 270 | public abstract class ParallelLongArrayW
270       * @param other the other array
271       * @return operation prefix
272       * @throws IllegalArgumentException if other array is a
273 <     * filtered view (all filters must precede all mappings).
273 >     * filtered view (all filters must precede all mappings)
274       */
275      public ParallelLongArrayWithLongMapping withMapping
276          (LongAndDoubleToLong combiner,
# Line 286 | Line 287 | public abstract class ParallelLongArrayW
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 ParallelLongArrayWithLongMapping withMapping
293          (BinaryLongOp combiner,
# Line 335 | Line 336 | public abstract class ParallelLongArrayW
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() {
# Line 343 | Line 344 | public abstract class ParallelLongArrayW
344      }
345  
346   }
346

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines