Java Stream Operation makeStream(final Object[] array)

Here you can find the source of makeStream(final Object[] array)

Description

make Stream

License

Creative Commons License

Declaration

private static Stream<String> makeStream(final Object[] array) 

Method Source Code


//package com.java2s;
/*/*from  w  ww  .  j  av  a  2  s .  c o  m*/
 * Copyright (c) 2013 - 2015 Naios <naios-dev@live.de>
 *
 * This file is part of WIde which is released under Creative Commons 4.0 (by-nc-sa)
 * See file LICENSE for full license details.
 */

import java.util.Arrays;

import java.util.stream.Stream;

public class Main {
    private static Stream<String> makeStream(final Object[] array) {
        return Arrays.stream(array).map(Object::toString);
    }
}

Related

  1. iteratorToStream(final Iterator iterator)
  2. lazyPartition(final Stream stream, final int maxPartitionSize)
  3. lazyStream(PrimitiveIterator.OfLong iterator)
  4. longArray(Stream stream)
  5. longList(LongStream stream)
  6. mapElementsSizes(IntStream intStream)
  7. maximum(final Stream stream)
  8. maxLong(Stream stream)
  9. maxStringLength(Stream stringStream)