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.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 ParallelLongArrayW
24      }
25  
26      /**
27 <     * Applies the given procedure to elements
27 >     * Applies the given procedure to elements.
28       * @param procedure the procedure
29       */
30      public void apply(LongProcedure procedure) {
# Line 32 | Line 32 | public abstract class ParallelLongArrayW
32      }
33  
34      /**
35 <     * Returns reduction of elements
35 >     * Returns reduction of 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 ParallelLongArrayW
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 ParallelLongArrayW
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 ParallelLongArrayW
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 ParallelLongArrayW
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 ParallelLongArrayW
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 ParallelLongArrayW
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 ParallelLongArrayW
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 elements
112 >     * Returns a new ParallelLongArray holding elements.
113       * @return a new ParallelLongArray holding elements
114       */
115      public ParallelLongArray all() {
# Line 149 | Line 149 | public abstract class ParallelLongArrayW
149       * @param other the other array
150       * @return operation prefix
151       * @throws IllegalArgumentException if other array is a
152 <     * filtered view (all filters must precede all mappings).
152 >     * filtered view (all filters must precede all mappings)
153       */
154      public <V,W,X> ParallelLongArrayWithMapping<W> withMapping
155          (LongAndObjectToObject<? super V, ? extends W> combiner,
# Line 166 | Line 166 | public abstract class ParallelLongArrayW
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> ParallelLongArrayWithMapping<V> withMapping
172          (LongAndDoubleToObject<? extends V> combiner,
# Line 184 | Line 184 | public abstract class ParallelLongArrayW
184       * @param other the other array
185       * @return operation prefix
186       * @throws IllegalArgumentException if other array is a
187 <     * filtered view (all filters must precede all mappings).
187 >     * filtered view (all filters must precede all mappings)
188       */
189      public <V> ParallelLongArrayWithMapping<V> withMapping
190          (LongAndLongToObject<? extends V> combiner,
# Line 201 | Line 201 | public abstract class ParallelLongArrayW
201       * @param other the other array
202       * @return operation prefix
203       * @throws IllegalArgumentException if other array is a
204 <     * filtered view (all filters must precede all mappings).
204 >     * filtered view (all filters must precede all mappings)
205       */
206      public <V,W> ParallelLongArrayWithDoubleMapping withMapping
207          (LongAndObjectToDouble<? super V> combiner,
# Line 218 | Line 218 | public abstract class ParallelLongArrayW
218       * @param other the other array
219       * @return operation prefix
220       * @throws IllegalArgumentException if other array is a
221 <     * filtered view (all filters must precede all mappings).
221 >     * filtered view (all filters must precede all mappings)
222       */
223      public ParallelLongArrayWithDoubleMapping withMapping
224          (LongAndDoubleToDouble combiner,
# Line 235 | Line 235 | public abstract class ParallelLongArrayW
235       * @param other the other array
236       * @return operation prefix
237       * @throws IllegalArgumentException if other array is a
238 <     * filtered view (all filters must precede all mappings).
238 >     * filtered view (all filters must precede all mappings)
239       */
240      public ParallelLongArrayWithDoubleMapping withMapping
241          (LongAndLongToDouble combiner,
# Line 252 | Line 252 | public abstract class ParallelLongArrayW
252       * @param other the other array
253       * @return operation prefix
254       * @throws IllegalArgumentException if other array is a
255 <     * filtered view (all filters must precede all mappings).
255 >     * filtered view (all filters must precede all mappings)
256       */
257      public <V,W> ParallelLongArrayWithLongMapping withMapping
258          (LongAndObjectToLong<? super V> combiner,
# Line 269 | Line 269 | public abstract class ParallelLongArrayW
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 ParallelLongArrayWithLongMapping withMapping
275          (LongAndDoubleToLong combiner,
# Line 286 | Line 286 | public abstract class ParallelLongArrayW
286       * @param other the other array
287       * @return operation prefix
288       * @throws IllegalArgumentException if other array is a
289 <     * filtered view (all filters must precede all mappings).
289 >     * filtered view (all filters must precede all mappings)
290       */
291      public ParallelLongArrayWithLongMapping withMapping
292          (BinaryLongOp combiner,
# Line 335 | Line 335 | public abstract class ParallelLongArrayW
335      /**
336       * Returns an Iterable view to sequentially step through mapped
337       * elements also obeying bound and filter constraints, without
338 <     * performing computations to evaluate them in parallel
338 >     * performing computations to evaluate them in parallel.
339       * @return the Iterable view
340       */
341      public Iterable<Long> sequentially() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines