changeset 7346:4da590a550a5

Rename Flatmapper.explodeInto to flattenInto
author briangoetz
date Mon, 18 Feb 2013 11:36:11 -0500
parents cc01521c9211
children dca8cf166b2a
files src/share/classes/java/util/stream/DoublePipeline.java src/share/classes/java/util/stream/FlatMapper.java src/share/classes/java/util/stream/IntPipeline.java src/share/classes/java/util/stream/LongPipeline.java src/share/classes/java/util/stream/ReferencePipeline.java
diffstat 5 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/stream/DoublePipeline.java	Mon Feb 18 16:55:10 2013 +0100
+++ b/src/share/classes/java/util/stream/DoublePipeline.java	Mon Feb 18 11:36:11 2013 -0500
@@ -151,7 +151,7 @@
                                StreamShape.DOUBLE_VALUE,
                                (flags, sink) -> new Sink.ChainedDouble(sink) {
                                    public void accept(double t) {
-                                       mapper.explodeInto(t, (Sink.OfDouble) downstream);
+                                       mapper.flattenInto(t, (Sink.OfDouble) downstream);
                                    }
                                });
     }
--- a/src/share/classes/java/util/stream/FlatMapper.java	Mon Feb 18 16:55:10 2013 +0100
+++ b/src/share/classes/java/util/stream/FlatMapper.java	Mon Feb 18 11:36:11 2013 -0500
@@ -44,7 +44,7 @@
      * @param element The input element
      * @param sink A {@code Consumer} to receive the output elements
      */
-    void explodeInto(T element, Consumer<U> sink);
+    void flattenInto(T element, Consumer<U> sink);
 
     /**
      * An operation that maps an element of type {@code T} to zero or more elements of type {@code int}.
@@ -57,7 +57,7 @@
          * @param element The input element
          * @param sink A {@code IntConsumer} to receive the output elements
          */
-        void explodeInto(T element, IntConsumer sink);
+        void flattenInto(T element, IntConsumer sink);
     }
 
     /**
@@ -71,7 +71,7 @@
          * @param element The input element
          * @param sink A {@code LongConsumer} to receive the output elements
          */
-        void explodeInto(T element, LongConsumer sink);
+        void flattenInto(T element, LongConsumer sink);
     }
 
     /**
@@ -85,7 +85,7 @@
          * @param element The input element
          * @param sink A {@code DoubleConsumer} to receive the output elements
          */
-        void explodeInto(T element, DoubleConsumer sink);
+        void flattenInto(T element, DoubleConsumer sink);
     }
 
     /**
@@ -99,7 +99,7 @@
          * @param element The input element
          * @param sink A {@code IntConsumer} to receive the output elements
          */
-        void explodeInto(int element, IntConsumer sink);
+        void flattenInto(int element, IntConsumer sink);
     }
 
     /**
@@ -113,7 +113,7 @@
          * @param element The input element
          * @param sink A {@code LongConsumer} to receive the output elements
          */
-        void explodeInto(long element, LongConsumer sink);
+        void flattenInto(long element, LongConsumer sink);
     }
 
     /**
@@ -127,6 +127,6 @@
          * @param element The input element
          * @param sink A {@code DoubleConsumer} to receive the output elements
          */
-        void explodeInto(double element, DoubleConsumer sink);
+        void flattenInto(double element, DoubleConsumer sink);
     }
 }
--- a/src/share/classes/java/util/stream/IntPipeline.java	Mon Feb 18 16:55:10 2013 +0100
+++ b/src/share/classes/java/util/stream/IntPipeline.java	Mon Feb 18 11:36:11 2013 -0500
@@ -173,7 +173,7 @@
                             StreamShape.INT_VALUE,
                             (flags, sink) -> new Sink.ChainedInt(sink) {
                                 public void accept(int t) {
-                                    mapper.explodeInto(t, (Sink.OfInt) downstream);
+                                    mapper.flattenInto(t, (Sink.OfInt) downstream);
                                 }
                             });
     }
--- a/src/share/classes/java/util/stream/LongPipeline.java	Mon Feb 18 16:55:10 2013 +0100
+++ b/src/share/classes/java/util/stream/LongPipeline.java	Mon Feb 18 11:36:11 2013 -0500
@@ -163,7 +163,7 @@
                              StreamShape.LONG_VALUE,
                              (flags, sink) -> new Sink.ChainedLong(sink) {
                                  public void accept(long t) {
-                                     mapper.explodeInto(t, (Sink.OfLong) downstream);
+                                     mapper.flattenInto(t, (Sink.OfLong) downstream);
                                  }
                              });
     }
--- a/src/share/classes/java/util/stream/ReferencePipeline.java	Mon Feb 18 16:55:10 2013 +0100
+++ b/src/share/classes/java/util/stream/ReferencePipeline.java	Mon Feb 18 11:36:11 2013 -0500
@@ -169,7 +169,7 @@
                             StreamShape.REFERENCE,
                             (flags, sink) -> new Sink.ChainedReference<U>(sink) {
                                 public void accept(U u) {
-                                    mapper.explodeInto(u, downstream);
+                                    mapper.flattenInto(u, downstream);
                                 }
                             });
     }
@@ -181,7 +181,7 @@
                             StreamShape.REFERENCE,
                             (flags, sink) -> new Sink.ChainedReference<U>(sink) {
                                 public void accept(U u) {
-                                    mapper.explodeInto(u, (Sink.OfInt) downstream);
+                                    mapper.flattenInto(u, (Sink.OfInt) downstream);
                                 }
                             });
     }
@@ -193,7 +193,7 @@
                                StreamShape.REFERENCE,
                                (flags, sink) -> new Sink.ChainedReference<U>(sink) {
                                    public void accept(U u) {
-                                       mapper.explodeInto(u, (Sink.OfDouble) downstream);
+                                       mapper.flattenInto(u, (Sink.OfDouble) downstream);
                                    }
                                });
     }
@@ -205,7 +205,7 @@
                              StreamShape.REFERENCE,
                              (flags, sink) -> new Sink.ChainedReference<U>(sink) {
                                  public void accept(U u) {
-                                     mapper.explodeInto(u, (Sink.OfLong) downstream);
+                                     mapper.flattenInto(u, (Sink.OfLong) downstream);
                                  }
                              });
     }