Java Stream of streamof(Iterable vals)

Here you can find the source of streamof(Iterable vals)

Description

streamof

License

Open Source License

Declaration

public static <T> Stream<T> streamof(Iterable<T> vals) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import static java.util.stream.StreamSupport.*;
import java.util.stream.Stream;

public class Main {
    public static <T> Stream<T> streamof(Iterable<T> vals) {

        return streamof(vals, false);
    }/*  ww  w  . jav a  2s .c o  m*/

    public static <T> Stream<T> streamof(Iterable<T> vals, boolean parallel) {

        return stream(vals.spliterator(), parallel);
    }
}

Related

  1. streamEquals(Stream a, Stream b)
  2. streamInt(int max)
  3. streamOf (final Iterable iterable)
  4. streamOf(Iterable it)
  5. streamOf(Iterable iterable)
  6. streamOf(T value)
  7. streamOfEnumeration(Enumeration e, boolean parallel)
  8. streamOfOptional(Optional element)
  9. streamOrEmpty(Iterable iterable)