changeset 8464:403a34d53eae

Rename PipelineHelper.getHeadShape to getSourceShape.
author psandoz
date Mon, 06 May 2013 18:39:53 +0200
parents fad441986ad6
children 95cfe3e46610
files src/share/classes/java/util/stream/AbstractPipeline.java src/share/classes/java/util/stream/PipelineHelper.java src/share/classes/java/util/stream/SliceOps.java
diffstat 3 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/stream/AbstractPipeline.java	Mon May 06 18:26:12 2013 +0200
+++ b/src/share/classes/java/util/stream/AbstractPipeline.java	Mon May 06 18:39:53 2013 +0200
@@ -448,7 +448,7 @@
     // PipelineHelper
 
     @Override
-    final StreamShape getHeadShape() {
+    final StreamShape getSourceShape() {
         AbstractPipeline p = AbstractPipeline.this;
         while (p.depth > 0) {
             p = p.previousStage;
--- a/src/share/classes/java/util/stream/PipelineHelper.java	Mon May 06 18:26:12 2013 +0200
+++ b/src/share/classes/java/util/stream/PipelineHelper.java	Mon May 06 18:39:53 2013 +0200
@@ -55,11 +55,11 @@
 abstract class PipelineHelper<P_OUT> {
 
     /**
-     * Gets the stream shape at the head, or input, of the pipeline segment.
+     * Gets the stream shape for the source of the pipeline segment.
      *
-     * @return the stream shape at the head of the pipeline segment.
+     * @return the stream shape for the source of the pipeline segment.
      */
-    abstract StreamShape getHeadShape();
+    abstract StreamShape getSourceShape();
 
     /**
      * Gets the combined stream and operation flags for the output of the described
--- a/src/share/classes/java/util/stream/SliceOps.java	Mon May 06 18:26:12 2013 +0200
+++ b/src/share/classes/java/util/stream/SliceOps.java	Mon May 06 18:39:53 2013 +0200
@@ -135,7 +135,7 @@
                     spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
                     // method on AbstractPipeline and not PipelineHelper
                     return evaluateToNode(helper,
-                                          sliceSpliterator(helper.getHeadShape(), spliterator, skip, limit),
+                                          sliceSpliterator(helper.getSourceShape(), spliterator, skip, limit),
                                           true, generator);
                 }
                 else {
@@ -218,7 +218,7 @@
                     // method on AbstractPipeline and not PipelineHelper
 
                     return evaluateToNode(helper,
-                                          sliceSpliterator(helper.getHeadShape(), spliterator, skip, limit),
+                                          sliceSpliterator(helper.getSourceShape(), spliterator, skip, limit),
                                           true, generator);
                 }
                 else {
@@ -300,7 +300,7 @@
                     spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
                     // method on AbstractPipeline and not PipelineHelper
                     return evaluateToNode(helper,
-                                          sliceSpliterator(helper.getHeadShape(), spliterator, skip, limit),
+                                          sliceSpliterator(helper.getSourceShape(), spliterator, skip, limit),
                                           true, generator);
                 }
                 else {
@@ -382,7 +382,7 @@
                     spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
                     // method on AbstractPipeline and not PipelineHelper
                     return evaluateToNode(helper,
-                                          sliceSpliterator(helper.getHeadShape(), spliterator, skip, limit),
+                                          sliceSpliterator(helper.getSourceShape(), spliterator, skip, limit),
                                           true, generator);
                 }
                 else {