Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.
Java™ Platform
Standard Ed. 8

DRAFT ea-b00
compact1, compact2, compact3
java.util.stream

Interface FlatMapper<T,U>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static interface  FlatMapper.OfDoubleToDouble
      An operation that maps an element of type double to zero or more elements of type double.
      static interface  FlatMapper.OfIntToInt
      An operation that maps an element of type int to zero or more elements of type int.
      static interface  FlatMapper.OfLongToLong
      An operation that maps an element of type long to zero or more elements of type long.
      static interface  FlatMapper.ToDouble<T>
      An operation that maps an element of type T to zero or more elements of type double.
      static interface  FlatMapper.ToInt<T>
      An operation that maps an element of type T to zero or more elements of type int.
      static interface  FlatMapper.ToLong<T>
      An operation that maps an element of type T to zero or more elements of type long.
    • Method Detail

      • flattenInto

        void flattenInto(T element,
                       Consumer<U> sink)
        Accept an input element and emit zero or more output elements into the provided Consumer
        Parameters:
        element - The input element
        sink - A Consumer to receive the output elements
Java™ Platform
Standard Ed. 8

DRAFT ea-b00

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.

DRAFT ea-b00