IT. Expert System.

Java Standard Edition (SE)

DoubleStream.Builder


compact1, compact2, compact3
java.util.stream

Interface DoubleStream.Builder

  • All Superinterfaces:
    DoubleConsumer
    Enclosing interface:
    DoubleStream


    public static interface DoubleStream.Builder
    extends DoubleConsumer
    A mutable builder for a DoubleStream.

    A stream builder has a lifecycle, which starts in a building phase, during which elements can be added, and then transitions to a built phase, after which elements may not be added. The built phase begins when the build() method is called, which creates an ordered stream whose elements are the elements that were added to the stream builder, in the order they were added.

    Since:
    1.8
    See Also:
    DoubleStream.builder()
    • Method Detail

      • accept

        void accept(double t)
        Adds an element to the stream being built.
        Specified by:
        accept in interface DoubleConsumer
        Parameters:
        t - the input argument
        Throws:
        IllegalStateException - if the builder has already transitioned to the built state
      • add

        default DoubleStream.Builder add(double t)
        Adds an element to the stream being built.
        Implementation Requirements:
        The default implementation behaves as if:
        
             accept(t)
             return this;
         
        Parameters:
        t - the element to add
        Returns:
        this builder
        Throws:
        IllegalStateException - if the builder has already transitioned to the built state
      • build

        DoubleStream build()
        Builds the stream, transitioning this builder to the built state. An IllegalStateException is thrown if there are further attempts to operate on the builder after it has entered the built state.
        Returns:
        the built stream
        Throws:
        IllegalStateException - if the builder has already transitioned to the built state


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 180 / 158747196. Delta: 0.00437 с